A method and electronic device for displaying time
By superimposing different parts of the target control with different digital parts of the digital clock in the screen-off display state of the electronic device, forming a visual effect interspersed with each other, solving the problem of single display effect of digital clocks in the prior art, achieving richer display effects and saving power consumption.
Patent Information
- Application Number
- CN202010219136.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-25
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2040-03-25
AI Technical Summary
When existing electronic devices display digital clocks in the on-screen display state, the visual effect is single, which cannot meet users' pursuit of richer display effects.
By obtaining three pictures: the first picture includes the first part of the target control, the second picture includes the second part of the target control, and the third picture includes the digital clock, these pictures are superimposed in turn to generate the picture to be displayed. In the screen to be displayed, the first and second parts of the target control form a complete target control, which overlaps with at least one digital part of the digital clock to form a visual effect interspersed with each other.
It realizes that when the electronic device is in the off-screen display state, it provides users with richer display effects, avoids the digital clock and the target control forming a single front-and-back display effect, and saves power consumption.
Smart Images

Figure CN113515327B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment, and in particular to a method for displaying time and electronic equipment. Background Art
[0002] With the development of electronic technology, electronic devices such as smart phones and tablet computers are becoming more and more popular, and users are becoming more and more dependent on electronic devices. Taking mobile phones as an example, users turn on their mobile phone screens many times a day, and most of the time they turn on their mobile phone screens to check the time and various notifications. In order to meet people's functional requirements for electronic devices, many electronic devices are equipped with always on display (AOD) functions to improve the display effect and user experience of electronic devices.
[0003] When a digital clock is displayed on the screen-off display interface of an electronic device, a pattern can be displayed as the background or foreground of the digital clock. The current screen-off display effect is: the positional relationship between the digital clock and the pattern is a front-to-back relationship. One is that the digital clock is superimposed on the pattern, forming a visual effect of the number in front and the pattern in the back; the other is that the pattern is superimposed on the digital clock, forming a visual effect of the pattern in front and the number in the back. Both of these display effects are single and cannot meet the user's pursuit of richer display effects. Summary of the invention
[0004] The embodiments of the present application provide a method for displaying time and an electronic device, so as to provide a user with a richer display effect when a digital clock is displayed when the electronic device is in a screen-off display state.
[0005] In a first aspect, an embodiment of the present application provides a method for displaying time, which is applied to an electronic device with a display screen, the method comprising: the electronic device obtains a first picture, a second picture and a third picture, wherein the first picture includes a first part of a target control, the second picture includes a second part of the target control, and the third picture includes a digital clock; the electronic device superimposes the first picture, the third picture and the second picture in sequence to generate a picture to be displayed, wherein, in the picture to be displayed, the first part and the second part of the target control constitute the target control, and the target control overlaps with at least one digital part of the digital clock; when the display screen is in a screen-off display state, the picture to be displayed is displayed.
[0006] Based on this scheme, the electronic device sequentially superimposes a first picture including the first part of the target control, a third picture including a digital clock, and a second picture including the second part of the target control to generate a screen to be displayed. In the generated screen to be displayed, the first part and the second part of the target control constitute the target control, which can form a visual effect of the first part of the target control being displayed behind the number and the second part of the target control being displayed in front of the number, which is interspersed with each other. Compared with the display effect of a single front-to-back relationship between the number and the entire target control, this scheme can provide users with richer display effects when displaying a digital clock when the electronic device is in the screen-off display state.
[0007] In one possible design, the digital clock includes numbers for representing hours and numbers for representing minutes, and the numbers for representing hours and the numbers for representing minutes are located in different rows; the numbers for representing hours include a first digit located in the tens place and a second digit located in the ones place; the target control included in the screen to be displayed partially overlaps with the first digit.
[0008] In this design, the first digit is a digit located at the tens place representing the hour, and its possible values are 0, 1, and 2. During the timing of the digital clock, the first digit changes 3 times within 24 hours of timing. Compared with the second, third, and fourth digits, the frequency of change is lower, which can save power consumption.
[0009] In a possible design, the electronic device obtains the first picture and the third picture in the following manner: calling the first picture and the third picture according to the file names of the first picture and the third picture, respectively; wherein the file name of the first picture is: the layout type of the digital clock, the value of the number on the digital clock that partially overlaps with the target control, and the positional relationship between the first picture and the digital clock; and the file name of the third picture is: the clock layout type of the digital clock, the value of the number on the digital clock that partially overlaps with the target control, and the positional relationship between the third picture and the digital clock.
[0010] For example, the layout type of the digital clock is a single clock layout, the value of the numbers on the digital clock that partially overlap with the target control is 0, the position relationship between the first picture and the digital clock is that the first picture is the background of the digital clock, and the position relationship between the first picture and the digital clock is that the first picture is the foreground of the digital clock. In this example, the file name of the first picture is: single_digit0_bg.png, and the file name of the second picture is: single_digit0_fg.png.
[0011] In a possible design, the size of the first part of the target control is smaller than the size of the first image, and the size of the second part of the target control is smaller than the size of the second image. In this design, the target control does not fill the entire superimposed image, that is, there is a transparent hollow area in the image to be displayed. In this way, when the image to be displayed is displayed in the off-screen display state, only the pixels in the area where the target control is located need to emit light, which can prevent screen burn-in.
[0012] In a possible design, the layout of the digital clock can be a single clock layout or a dual clock layout.
[0013] In one possible design, each digit included in the digital clock corresponds to three groups of image resources. The three groups of image resources include a group of image resources corresponding to a single clock layout and two groups of image resources corresponding to two clocks in a dual clock layout. Each group of image resources includes a first image as a background layer and a second image as a foreground layer.
[0014] In a possible design, the image formats of the first image, the second image and the third image are all in the image file storage png format. In the to-be-displayed picture generated by superimposing the first image, the second image and the third image, the other areas except the numbers and the target controls on the digital clock are transparent hollow effects.
[0015] In a possible design, the target control may be a pattern, including but not limited to a bird pattern, a fish picture, a fan pattern, etc. The target control may also include at least two patterns, for example, the target control is composed of two fish, one fish is superimposed on the first number on the digital clock as the first part of the target control, and becomes the background of the first number, and the other fish is superimposed on the first number as the second part of the target control, and becomes the foreground of the first number, so that the generated image to be displayed includes the target control composed of two fish.
[0016] In a possible design, when the display screen is in the off-screen display state, the first information can also be displayed; wherein the color of the first information can be set to be consistent with the color of the digits on the digital clock. For example, the first information may include but is not limited to information such as location, icon, date, and push message, and the color of the first information is set to be consistent with the color of the digits on the digital clock, which helps to improve the user experience.
[0017] In one possible design, the method may also include: the electronic device detects a click operation on the target control, and in response to the click operation, plays the time of a digital clock.
[0018] In a second aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a display screen; the display screen is used to display a user interface; the memory is used to store one or more computer programs, and when the computer program is executed by the processor, the electronic device executes: obtaining a first picture, a second picture, and a third picture, wherein the first picture includes a first part of a target control, the second picture includes a second part of the target control, and the third picture includes a digital clock; superimposing the first picture, the third picture, and the second picture in sequence to generate a screen to be displayed, wherein, in the screen to be displayed, the first part and the second part of the target control constitute the target control, and the target control overlaps with at least one digital part of the digital clock; when the display screen is in a screen-off display state, displaying the screen to be displayed.
[0019] In one possible design, the digital clock includes numbers for representing hours and numbers for representing minutes, and the numbers for representing hours and the numbers for representing minutes are located in different rows; the numbers for representing hours include a first digit located in the tens place and a second digit located in the ones place; the target control included in the screen to be displayed partially overlaps with the first digit.
[0020] In one possible design, when the computer program is executed by the processor, the electronic device further executes: calling the first picture and the third picture according to the file names of the first picture and the third picture, respectively; wherein the file name of the first picture is: the layout type of the digital clock, the value of the number that partially overlaps with the target control, and the positional relationship between the first picture and the digital clock; and the file name of the third picture is: the clock layout type of the digital clock, the value of the number that partially overlaps with the target control, and the positional relationship between the third picture and the digital clock.
[0021] In a possible design, the size of the first part of the target control is smaller than the size of the first picture, and the size of the second part of the target control is smaller than the size of the second picture.
[0022] In a possible design, the layout of the digital clock is a single clock layout or a dual clock layout.
[0023] In one possible design, each digit included in the digital clock corresponds to three groups of image resources. The three groups of image resources include a group of image resources corresponding to a single clock layout and two groups of image resources corresponding to two clocks in a dual clock layout. Each group of image resources includes a first image as a background layer and a second image as a foreground layer.
[0024] In a possible design, the picture formats of the first picture, the second picture and the third picture are all image file storage png format.
[0025] In one possible design, the target control is a pattern of a bird.
[0026] In one possible design, the target control includes at least two patterns.
[0027] In one possible design, when the computer program is executed by the processor, the electronic device further executes: when the display screen is in an off-screen display state, displaying first information; wherein the color of the first information can be set to be consistent with the digital color of the digital clock.
[0028] In one possible design, when the computer program is executed by the processor, the electronic device further executes: detecting a click operation on a target control; and playing the time of a digital clock in response to the click operation.
[0029] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a module / unit for executing any possible design method of any of the above aspects. These modules / units can be implemented by hardware, or by executing corresponding software implementations by hardware.
[0030] In a fourth aspect, a computer-readable storage medium is also provided in an embodiment of the present application, and the computer-readable storage medium includes a computer program. When the computer program runs on an electronic device, the electronic device executes any possible design method of any of the above aspects.
[0031] In a fifth aspect, an embodiment of the present application further provides a method comprising a computer program product, which, when executed on a terminal, enables the electronic device to execute any possible design of any of the above aspects.
[0032] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0034] Figure 2 A software structure block diagram of an electronic device provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of a user interface provided in an embodiment of the present application;
[0036] Figure 4a A schematic diagram of a screen-off display interface provided in an embodiment of the present application;
[0037] Figure 4b Another schematic diagram of an off-screen display interface provided by an embodiment of the present application;
[0038] Figure 4cA schematic diagram of another screen-off display interface provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of a process of screen-off display provided by an embodiment of the present application;
[0040] Figure 6 A schematic diagram of a single clock layout provided in an embodiment of the present application;
[0041] Figure 7 A schematic diagram of a dual clock layout provided in an embodiment of the present application;
[0042] Figure 8a A schematic diagram of single clock image resource specifications provided in an embodiment of the present application;
[0043] Figure 8b A schematic diagram of dual clock image resource specifications provided in an embodiment of the present application;
[0044] Fig. 9 A schematic diagram of another process of screen-off display provided by an embodiment of the present application;
[0045] Fig.10 A schematic diagram of a method for displaying an off-screen display provided in an embodiment of the present application;
[0046] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] For ease of understanding, some examples of concepts related to the embodiments of the present application are provided for reference, as shown below:
[0048] Always on display: When an electronic device is in the always on display state, it can light up some pixels individually to display content such as clock, date, and weather conditions.
[0049] The screen-off display state refers to the state where the screen is off.
[0050] The screen-off display area is the area on the display panel used to display information when the electronic device is in the screen-off display mode. When the electronic device is in the locked screen state, some sub-pixels of the display panel can be in the on state (that is, some sub-pixels of the display panel are lit), and other sub-pixels are in the off state, so that some areas of the display panel remain always on, and the rest of the areas are in a black screen state. The area that remains always on can be called the screen-off display area.
[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terms "first", "second", etc. are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0052] The various embodiments disclosed in this application can be applied to an electronic device provided with a display screen, and the electronic device has a screen-off display function. In some embodiments of this application, the electronic device can be a portable electronic device including functions such as a personal digital assistant and / or a music player, such as a mobile phone, a tablet computer, a wearable device with wireless communication function (such as a smart watch), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to Or a portable electronic device with other operating systems. The portable electronic device may also be a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present application, the electronic device may also be a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0053] Figure 1 A schematic structural diagram of an electronic device 100 is exemplarily shown.
[0054] It should be understood that the illustrated electronic device 100 is only an example, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0055] like Figure 1As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0056] Combine the following Figure 1 The various components of the electronic device 100 are described in detail:
[0057] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0058] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 110, and thus improving the efficiency of the system.
[0059] The processor 110 can run the method for displaying the screen off provided in the embodiment of the present application. When the processor 110 integrates different devices, such as a CPU and a GPU, the CPU and the GPU can cooperate to execute the method for operation prompts provided in the embodiment of the present application, such as part of the algorithm in the method for operation prompts is executed by the CPU, and another part of the algorithm is executed by the GPU, so as to obtain faster processing efficiency.
[0060] In some embodiments, the processor 110 may include one or more interfaces. For example, the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0061] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0062] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0063] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0064] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0065] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0066] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0067] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0068] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0069] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0070] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0071] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0072] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0073] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0074] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0075] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0076] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0077] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0078] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0079] In the embodiment of the present application, the display screen 194 may be an integrated flexible display screen, or a spliced display screen consisting of two rigid screens and a flexible screen located between the two rigid screens.
[0080] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0081] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0082] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0083] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0084] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0085] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0086] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0087] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0088] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0089] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0090] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0091] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0092] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0093] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0094] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.
[0095] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0096] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0097] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0098] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0099] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0100] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0101] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0102] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. For example, a fingerprint sensor can be configured on the front of the electronic device 100 (below the display screen 194), or a fingerprint sensor can be configured on the back of the electronic device 100 (below the rear camera). In addition, the fingerprint recognition function can also be realized by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor can be integrated with the touch screen to realize the fingerprint recognition function of the electronic device 100. In this case, the fingerprint sensor can be configured in the touch screen, can be a part of the touch screen, or can be configured in the touch screen in other ways. In addition, the fingerprint sensor can also be implemented as a full-panel fingerprint sensor, so the touch screen can be regarded as a panel where fingerprint collection can be performed at any position. In some embodiments, the fingerprint sensor can process the collected fingerprint (for example, whether the fingerprint is verified) and send it to the processor 110, and the processor 110 performs corresponding processing according to the fingerprint processing result. In other embodiments, the fingerprint sensor can also send the collected fingerprint to the processor 110 so that the processor 110 processes the fingerprint (for example, fingerprint verification, etc.). The fingerprint sensor in the embodiments of the present application may adopt any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technology.
[0103] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0104] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0105] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0106] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0107] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0108] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0109] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0110] although Figure 1 Not shown, the electronic device 100 may further include a Bluetooth device, a positioning device, a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which are not described in detail here.
[0111] The following embodiments can all be implemented in an electronic device 100 (such as a mobile phone, tablet computer, etc.) having the above hardware structure. Figure 1 The hardware structure of the electronic device 100 has been described. The following embodiments take the Android system with a layered architecture as an example to exemplify the software structure of the electronic device 100.
[0112] Figure 2 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0113] like Figure 2 As shown, the software structure of the electronic device adopts a layered architecture, which divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0114] The application layer can include a series of application packages. Figure 2 As shown, the application package may include applications such as phone, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0115] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0116] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0117] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0118] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0119] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0120] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, etc.
[0121] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0122] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0123] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0124] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0125] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0126] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0127] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0128] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0129] A 2D graphics engine is a drawing engine for 2D drawings.
[0130] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0131] Some exemplary user interfaces (UI) provided by the electronic device 100 are introduced below. The term "user interface" in the specification, claims and drawings of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, wherein the control may include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. Visual interface elements.
[0132] Figure 3 The example in FIG. 1 shows a user interface 300 displayed on the display screen 194 of the electronic device 100 .
[0133] like Figure 3 As shown, the user interface 300 is a screen-off display interface of an electronic device. The user interface 300 may include a digital clock 301, and the digital clock 301 may include time digits. The layout style of the digital clock may be horizontal display, that is, the digits used to represent the hours and the digits used to represent the minutes are displayed in the same row (or line). It should be understood that Figure 3 The layout style of the digital clock in the embodiment of the present application is not limited. The layout style of the digital clock in the present application may also be other styles, such as double-row display. Figure 4a ,or Figure 4b ,or Figure 4cAs shown, the numbers used to represent the hours and the numbers used to represent the minutes are not displayed in the same row (or line). The numbers used to represent the hours may be in the first row (or line) and the numbers used to represent the minutes may be in the second row (or line), or the numbers used to represent the minutes may be in the first row (or line) and the numbers used to represent the hours may be in the second row (or line).
[0134] In some other embodiments, the user interface 300 may also include a date 302 and a weather widget 303, etc., and may also include icons 304 of various applications, such as a WeChat icon, a phone icon, a text message icon, and remaining power, etc. In some other embodiments, the user interface 300 may also include a push message 305, such as a WeChat message reminder.
[0135] Understandably, Figure 3 The screen-off display interface on the electronic device 100 is merely illustrated as an example and does not constitute a limitation on the embodiments of the present application.
[0136] When an electronic device displays a digital clock in the off-screen display scenario, the bird pattern is used as the background or foreground of the digital clock. The visual effects formed mainly include two types: one is Figure 4a As shown in the figure, time is superimposed on the bird pattern, creating a visual effect of time in front and the bird pattern behind. Figure 4b As shown, the bird pattern is superimposed on the time, forming a visual effect that the bird pattern is in front and the time is behind. Both of these visual effects are relatively simple and cannot meet the user's pursuit of richer display effects.
[0137] To this end, the present application provides a method for displaying time, which is applicable to an electronic device with a display screen, and the electronic device has an off-screen display function. In the method, the electronic device obtains a first picture, a second picture, and a third picture, wherein the first picture includes a first part of a target control, the second picture includes a second part of the target control, and the third picture includes a digital clock. The first picture, the third picture, and the second picture are superimposed in sequence to generate a picture to be displayed, in which the first part of the target control becomes the background (background, bg) of the digital clock, and the second part of the target control becomes the foreground (foreground, fg) of the digital clock. The first part as the background and the second part as the foreground form a complete target control, and the target control overlaps with at least one digital part of the digital clock. For example, the target control is a complete bird pattern, such as Figure 4cAs shown, the first picture includes the first part of the target control, namely, the tail of the bird, the second picture includes the digital clock, and the third picture includes the second part of the target control, namely, the front part of the bird. In the screen to be displayed obtained by superimposing these three pictures, the tail of the bird serves as the background of the number "0" included in the digital clock, and the front part of the bird serves as the foreground of the number "0", forming a visual effect in which the first part of the target control is in front of the number "0" and the second part of the target control is behind the number "0" that is interspersed with each other. Compared with the display effect in which the number "0" and the entire target control form a single front-to-back relationship, the method for displaying time in the present application can provide users with richer display effects when displaying a digital clock when the electronic device is in the screen-off display state.
[0138] It should be understood that the method for displaying time provided in the embodiments of the present application is not only applicable to digital clocks, but also to analog clocks. The following embodiments only take digital clocks as an example.
[0139] The following will describe in detail the method for displaying time provided in the embodiments of the present application in conjunction with the accompanying drawings.
[0140] In the embodiments of the present application, the digital clock may be in 24-hour format or 12-hour format. For ease of description, the following embodiments are described using the 24-hour format of the digital clock as an example.
[0141] For example, Figure 5 As shown, the time on the digital clock is 08:08, and the time on the digital clock includes digits for indicating hours and digits for indicating minutes, and the digits for indicating hours and the digits for indicating minutes are located in different rows. The digits for indicating hours include a first digit located in the tens place and a second digit located in the units place, and the first digit can take values such as 0, 1, 2, and the second digit can take values such as 0, 1, 2 ... 9. The digits for indicating minutes include a third digit located in the tens place and a fourth digit located in the units place, and the third digit can take values such as 0, 1, 2 ... 6, and the fourth digit can take values such as 0, 1, 2 ... 9.
[0142] The target control can be superimposed with any one or more of the first number, the second number, the third number, and the fourth number on the digital clock to obtain a picture to be displayed, and the target control in the picture to be displayed is superimposed with any one or more numbers to form a visual effect of interlacing with each other. In the following embodiments, the target control is superimposed with a number on the digital clock to obtain a picture to be displayed as an example for explanation.
[0143] Taking the target control as a bird pattern as an example, the bird pattern can be superimposed with the first number on the digital clock to obtain a to-be-displayed screen, in which the bird pattern and the first number partially overlap to form an interlaced effect. Among them, the first number is a number located at the tens place representing the hour, and its possible values are 0, 1, and 2. During the timing of the digital clock, the first number changes 3 times within the 24-hour timing time, which is lower than the change frequency of the second number, the third number, and the fourth number. In this way, compared with superimposing the bird pattern with other numbers (such as the second number, the third number, and the fourth number), superimposing the bird pattern with the first number can save power consumption.
[0144] The following takes the superposition of the target control (bird pattern) and the first digit of the digital clock as an example to introduce the method for displaying time in an embodiment of the present application.
[0145] In one example, the first digital value is "0", a portion of the target control is in the foreground layer, and another portion is in the background layer, such as Figure 5 As shown, picture 501 of the foreground layer includes the first part of the bird, picture 502 of the digital layer includes the number "0", and picture 503 of the background layer includes the second part of the bird. After superimposing pictures 501, 502, and 503, picture 504 is obtained. The first part of the bird and the second part of the bird in picture 504 form a complete bird pattern. In picture 504, the target control (bird pattern) and the number "0" form a visual effect of interlacing each other, that is, the first part of the bird is in front of the number "0", and the second part of the bird is behind the number "0".
[0146] In another example, the first digital value is "1", a portion of the target control is in the foreground layer, and another portion is in the background layer, such as Figure 5 As shown, picture 511 of the foreground layer includes the first part of the bird, picture 512 of the digital layer includes the number "1", and picture 513 of the background layer includes the second part of the bird. Picture 514 is obtained by superimposing pictures 511, 512, and 513. The first part of the bird and the second part of the bird in picture 514 form a complete bird pattern. In picture 514, the target control (bird pattern) and the number "1" form a visual effect of interlacing each other, that is, the first part of the bird is in front of the number "1", and the second part of the bird is behind the number "1".
[0147] In another example, the first number is set to "2", and all target controls are in the foreground layer, such as Figure 5As shown, picture 521 of the foreground layer includes a whole bird, picture 522 of the digital layer includes the number "2", and picture 523 of the background layer has no pattern. After superimposing pictures 521, 522, and 523, picture 524 is obtained. In picture 524, the target control (bird pattern) has a visual effect completely in front of the number "2".
[0148] In the above examples, the value of the first digit of the digital clock is different. The target control can be divided differently according to the different shapes of the digits "0", "1", and "2". The first part of the target control in the picture of the foreground layer corresponding to each different value is different, and the second part of the target control in the picture of the background layer corresponding to each value is also different. Therefore, after superimposing the pictures of the foreground layer, the digit layer, and the background layer corresponding to each value, the visual effects of the superimposed target control (bird pattern) and the first digit in the obtained pictures 504, 514, and 524 are also different. In this way, the bird pattern can be flexibly combined with the shape of the digit, and different superposition effects can be displayed as the time of the digital clock changes, thereby providing users with richer visual effects.
[0149] In the embodiment of the present application, any picture format of the background layer picture, the digital layer picture and the foreground layer picture is an image file storage (portable network graphic, png) format, so that the areas except the bird pattern in the background layer picture and the foreground layer picture are transparent hollow effects, and the areas except the numbers in the digital layer picture are transparent hollow effects. After the three layers of pictures are superimposed, the display of the numbers on the digital clock will not be affected, nor will the display of the bird pattern be affected. Moreover, only the pixels in the area where the digital clock and the target control (bird pattern) are located need to emit light on the screen to be displayed, which can save power consumption.
[0150] The above example only introduces the visual effect of the screen off display by superimposing the first number and the bird pattern. The method of displaying the time by superimposing the second number, the third number, the fourth number and the target control can refer to the relevant description of the above example, which will not be repeated here.
[0151] In the embodiment of the present application, the layout of the digital clock can be as follows: Figure 6 The single clock layout shown is Figure 6 As shown, a digital clock 601 is displayed on the screen display interface. For example, the electronic device can obtain the current geographical location and set the time of the digital clock 601 according to the time zone of the current geographical location. In some other embodiments, the layout of the digital clock can also be as follows: Figure 7The dual clock layout shown in the figure can display the time of two different locations. For example, one of the digital clocks can set the time according to the time zone corresponding to the home location (such as the registered residence, the usual residence, etc.), and the other digital clock can set the time according to the time zone corresponding to the current location of the electronic device (such as the business trip location). Figure 7 As shown, the screen display interface displays a digital clock 701 and a digital clock 703. For example, the time corresponding to the digital clock 701 is the local time and date in Hohhot, China. A house icon (as shown in a dotted box 702) is displayed below the digital clock 701. The time of the digital clock 701 is the time in the time zone where the home is located. The time corresponding to the digital clock 703 is the local time and date in Amsterdam. A positioning icon (as shown in a dotted box 704) is displayed below the digital clock 703. The time of the digital clock 703 is the time in the time zone where the electronic device is currently located.
[0152] Taking the superimposed display of the target control and the first digit as an example, the first digit can take values of 0, 1, and 2, and each value of the first digit can correspond to three groups of image resources, including a group of single clock image resources and two groups of dual clock image resources. A group of image resource files can be named: clock type_digit n_background.png and clock type_digit n_foreground.png, where the single clock is prefixed with single and the dual clock is prefixed with dual. For example, if the value of the first digit is "0", the digit n can be represented as digit 0; if the value of the first digit is "1", the digit n can be represented as digit1; if the value of the first digit is "2", the digit n can be represented as digit2.
[0153] Taking the value of the first digit as "2" as an example, the corresponding file names of a set of single-clock image resources are: single_digit2_bg.png and single_digit2_fg.png, and the corresponding file names of the two sets of dual-clock image resources are: dual1_digit2_bg.png, dual1_digit2_fg.png, dual2_digit2_bg.png, dual2_digit2_fg.png.
[0154] In the embodiment of the present application, the image size of the image resource can be set to a fixed size, which does not change with the change of the time number. For example, taking a single clock layout as an example, the width corresponding to the image size of the single clock image resource can be set to be consistent with the width of the display screen, such as Figure 8a The width is 360dp and the height is 248dp. Taking the dual clock layout as an example, the image specifications of each dual clock image resource (image 820 and image 830) can be as follows: Figure 8bThe width shown is 180dp and the height is 248dp.
[0155] In this example, in the image corresponding to each image resource, the size of the target control is smaller than the size of the image, for example Figure 8a Taking the picture 810 shown as an example, the size of the picture is 360dp in width and 248dp in height. The bird pattern 811 in the picture does not fill the entire picture, that is, there is a transparent hollow area in the picture 810. In this way, when the picture 810 is displayed on the screen-off display interface, only the pixels in the area where the bird pattern 811 is located need to emit light, which can prevent screen burn-in.
[0156] In addition, setting the image size larger can support the display of target controls of various shapes and sizes. When designing superimposed target controls for digital clocks, the size of the target control will not be limited to one, which may cause the target control to fail to display when replaced with a larger target control.
[0157] The following is an introduction to the AOD layout.
[0158] For example, the AOD layout is shown in the theme.xml file:
[0159]
[0160]
[0161] In the AOD layout, the layout style of the data clock can be as follows Figure 3 The horizontal display style shown can also be Figure 4a , Figure 4b , Figure 4c Double-row display style as shown in the figure.
[0162] In some embodiments, the value of the foreground image position can represent the display position of a part of the target control in the picture of the foreground layer on the digital clock, and the value of the background image position can represent the display position of another part of the target control in the picture of the background layer on the digital clock. The optional values of the foreground image position and the background image position are 0, 1, and 2. When the values of the foreground image position and the background image position are "0", it means that with the change of time, the corresponding foreground layer picture and background layer picture do not change. When designing the display effect of the target control, it is necessary to avoid the display area of the digital clock to ensure that the numbers are not blocked.
[0163] When the values of the foreground image position and the background image position are "1", the target control is displayed at the first digit position. Since the first digit of the 24-hour digital clock can be 0, 1, or 2, each value can correspond to three groups of image resources.
[0164] When the value of the first number is "0", the corresponding three groups of image resources are named as follows:
[0165] single_digit0_fg.png, single_digit0_bg.png;
[0166] dual1_digit0_fg.png, dual1_digit0_bg.png;
[0167] dual2_digit0_fg.png, dual2_digit0_bg.png.
[0168] When the value of the first number is "1", the corresponding three groups of image resources are named as follows:
[0169] single_digit1_fg.png, single_digit1_bg.png;
[0170] dual1_digit1_fg.png, dual1_digit1_bg.png;
[0171] dual2_digit1_fg.png, dual2_digit1_bg.png.
[0172] When the value of the first number is "2", the corresponding three groups of image resources are named as follows:
[0173] single_digit2_fg.png, single_digit2_bg.png;
[0174] dual1_digit2_fg.png, dual1_digit2_bg.png;
[0175] dual2_digit2_fg.png, dual2_digit2_bg.png.
[0176] The names of the above-mentioned image resources must match and cannot be changed. When 0, 1, and 2 are displayed at the position of the first digit respectively, the image of the foreground layer and the image of the background layer corresponding to the value of the first digit are displayed at the same time. In this way, different visual effects after the target control and the first digit are superimposed can be displayed according to the change of the value of the first digit.
[0177] When the value of the foreground image position and the background image position is "2", the target control is displayed at the second digit position. Since the value of the second digit of the 24-hour digital clock can be 0, 1, 2, ... 9, each value can correspond to three groups of image resources.
[0178] When the value of the second digit is "0", the corresponding three groups of image resources are named as follows:
[0179] single_digit0_fg.png, single_digit0_bg.png;
[0180] dual1_digit0_fg.png, dual1_digit0_bg.png;
[0181] dual2_digit0_fg.png, dual2_digit0_bg.png.
[0182] When the value of the second number can be "1", the corresponding three groups of image resources are named as follows:
[0183] single_digit1_fg.png, single_digit1_bg.png;
[0184] dual1_digit1_fg.png, dual1_digit1_bg.png;
[0185] dual2_digit1_fg.png, dual2_digit1_bg.png.
[0186] …
[0187] When the value of the second digit can be "9", the corresponding three groups of image resources are named as follows:
[0188] single_digit9_fg.png, single_digit9_bg.png;
[0189] dual1_digit9_fg.png, dual1_digit9_bg.png;
[0190] dual2_digit9_fg.png, dual2_digit9_bg.png.
[0191] The names of the above-mentioned image resources must match and cannot be changed. When 0, 1, 2, ... 9 are displayed in the position of the second digit respectively, the foreground image and background image corresponding to the value of the second digit are also displayed in the position of the second digit.
[0192] In some other embodiments, the target control can also be displayed on the digits representing minutes of a digital clock, and in this case, the foreground image position and the background image position can also be selected as 3 or 4.
[0193] When the values of the foreground image position and the background image position are "3", the target control is displayed at the position of the third digit. Since the value of the third digit of the 24-hour digital clock can be 0, 1, 2...6, each value can correspond to three groups of image resources.
[0194] When the value of the third digit is "0", the corresponding three groups of image resources are named as follows:
[0195] single_digit0_fg.png, single_digit0_bg.png;
[0196] dual1_digit0_fg.png, dual1_digit0_bg.png;
[0197] dual2_digit0_fg.png, dual2_digit0_bg.png.
[0198] …
[0199] When the value of the third digit can be "6", the corresponding three groups of image resources are named as follows:
[0200] single_digit6_fg.png, single_digit6_bg.png;
[0201] dual1_digit6_fg.png, dual1_digit6_bg.png;
[0202] dual2_digit6_fg.png, dual2_digit6_bg.png.
[0203] The names of the above-mentioned image resources must match and cannot be changed. When 0, 1, 2, ... 9 are displayed at the position of the third digit respectively, the foreground image and background image corresponding to the value of the third digit are also displayed at the position of the third digit.
[0204] When the value of the foreground image position and the background image position is "4", the target control is displayed at the position of the fourth digit. Since the value of the third digit of the 24-hour digital clock can be 0, 1, 2...9, each value can correspond to three groups of image resources. For specific image resources, please refer to the naming of the image resources corresponding to each value of the second digit when the value of the foreground image position and the background image position is "2", which will not be repeated here.
[0205] In the AOD layout, the numbers on the digital clock are in picture format, and the color of the numbers cannot be changed. When other information is displayed on the screen display interface in addition to the digital clock, the color of the other information may be different from that of the numbers. In the embodiment of the present application, the color of the other information can be set to change. Generally, the default color can be set to white. When the color of other information needs to be changed, it can be achieved by modifying the value of item fondcolor in the theme.xml file.
[0206] In an example, taking a single clock layout as an example, Figure 6 As shown, the color of the date (such as the Gregorian calendar date, the lunar calendar date, etc.), various application icons, and information such as the battery level (such as the information marked by the dotted box 602) displayed below the digital clock 601 can be set. In this way, by changing the color of the information marked by the dotted box 602, the digital clock displayed on the screen-off display interface can be made consistent with the color of other information, which helps to improve the user experience.
[0207] In another example, taking a dual clock layout as an example, Figure 7 As shown, the color of the information such as location, icon, date (such as Gregorian calendar date, day of the week, etc.) displayed below the digital clock 701 (such as the information marked by the dotted box 702) can be set, and the color of the information such as location, icon, date (such as Gregorian calendar date, day of the week, etc.) displayed below the digital clock 703 (such as the information marked by the dotted box 704) can be set. In this way, by changing the color of the information marked by the dotted box 702 and the dotted box 704, the digital clock displayed on the screen-off display interface can be made consistent with the color of other information, which helps to improve the user experience.
[0208] In an embodiment of the present application, the target control may be a pattern of a bird as in the above example, or may be a pattern of other objects, including but not limited to a pattern of a flower, a pattern of the moon, a pattern of a fan, etc., which are not listed here one by one.
[0209] In the above embodiment, the target control includes a pattern of an object (such as a bird), and the target control is displayed superimposed with a number of a digital clock.
[0210] In some other embodiments, the target control may be displayed in superposition with multiple digits of the digital clock to form an interlaced visual effect. It should be understood that the target control may be a pattern of one object or may include patterns of multiple objects.
[0211] The following takes the example of a target control including two object patterns, where the two objects are different goldfish patterns, and the example of a target control and two digital overlay displays to introduce another possible implementation of the method for displaying time of the present application.
[0212] See also Fig. 9 , the target control includes goldfish 01 in picture 901 and goldfish 02 in picture 903, picture 902 includes a digital clock, and pictures 901, 902, and 903 are superimposed, goldfish 01 in picture 901 is used as the background layer of two numbers (the first number and the third number) of the digital clock, and goldfish 02 in picture 903 is used as the foreground layer of two numbers (the first number and the third number) of the digital clock. After that, a to-be-displayed screen 904 is obtained. In the to-be-displayed screen 904, goldfish 01 and goldfish 02 constitute the target control, which can form a visual effect in which goldfish 01 is behind the first number (value is 0) and the third number (value is 0) (i.e., the background), and goldfish 02 is in front of the first number (value is 0) and the third number (value is 0) (i.e., the background) interlaced with each other.
[0213] In other embodiments, the goldfish 01 in picture 901 and the goldfish 02 in picture 903 may be superimposed with only one digit of the digital clock to form a visual effect of interlacing, or may be superimposed with three digits of the digital clock to form a visual effect of interlacing, or may be superimposed with four digits of the digital clock to form a visual effect of interlacing. For specific implementation methods, see Fig. 9 The examples are not repeated here.
[0214] exist Fig. 9 In the example shown, the relevant contents of the AOD layout can refer to the relevant contents of the AOD layout in the aforementioned embodiment, which will not be repeated here.
[0215] In an embodiment of the present application, the picture to be displayed on the screen-off display interface can be displayed at the same position of the display screen all the time, or it can be displayed at a different position at intervals. For example, a first number of pixels are moved every preset time to display the picture to be displayed. For example, a few pixels can be moved every 1 minute to display the picture to be displayed. The longer the preset time is set, the larger the value of the first number is. In this way, the display position of the picture to be displayed on the electronic device in the screen-off display state can be changed at regular intervals, so that the pixels that are lit up on the display screen when displaying the picture to be displayed at regular intervals are different. Compared with the electronic device lighting up the same pixels when displaying the picture to be displayed in the screen-off display state, the risk of pixel damage can be reduced, thereby reducing the risk of screen burn-in in the electronic device.
[0216] In this embodiment, when displaying the picture to be displayed in the screen-off state, the picture to be displayed can be displayed in two non-overlapping areas at intervals. In this way, the pixels that light up when the two non-overlapping areas display the pattern to be displayed are completely different, which can further reduce the risk of screen burn-in.
[0217] In combination with the above embodiments and drawings, the present application embodiment provides a method for displaying a screen off. The method can be used in a Figure 1 The electronic device of the hardware structure shown in FIG. Fig.10 As shown, the screen-off display method in the embodiment of the present application may include the following steps:
[0218] Step 1001, obtain a first picture, a second picture and a third picture, wherein the first picture includes a first part of a target control, the second picture includes a second part of a target control, and the third picture includes a digital clock. The layout of the digital clock can be a single clock layout or a dual clock layout.
[0219] For example, Fig. 9 For example, the first picture may be picture 901, the second picture may be picture 903, the third picture may be picture 902, and the target control may be a bird pattern.
[0220] Step 1002, superimpose the first picture, the third picture and the second picture in sequence to generate a picture to be displayed, wherein in the picture to be displayed, the first part and the second part of the target control constitute the target control, and the target control overlaps with at least one digital part of the digital clock.
[0221] For example, Fig. 9 For example, after superimposing picture 901, picture 903, and picture 902, a picture to be displayed is obtained as shown in picture 904.
[0222] Step 1003: When the display screen is in the screen-off display state, display the picture to be displayed.
[0223] Based on this method, the electronic device sequentially superimposes a first picture including a first part of a target control, a third picture including a digital clock, and a second picture including a second part of the target control to generate a picture to be displayed. In the generated picture to be displayed, the first part and the second part of the target control constitute the target control, which can form a visual effect of the first part of the target control being displayed behind the number and the second part of the target control being displayed in front of the number, which is interspersed with each other. Compared with the display effect of a single front-to-back relationship between the number and the entire target control, this solution can provide users with richer display effects when displaying a digital clock when the electronic device is in the screen-off display state.
[0224] In one possible implementation, the digital clock includes numerals for indicating hours and numerals for indicating minutes, and the numerals for indicating hours and the numerals for indicating minutes are located in different rows. In another implementation, the numerals for indicating hours and the numerals for indicating minutes included in the digital clock may also be located in the same row.
[0225] The digits used to represent the hour include a first digit located at the tens place and a second digit located at the ones place, and the target control included in the to-be-displayed screen partially overlaps with the first digit. The first digit is a digit located at the tens place representing the hour, and its possible values are 0, 1, and 2. During the timing of the digital clock, the first digit changes 3 times within the 24-hour timing time, which is lower than the change frequency of the second, third, and fourth digits, and can save power consumption.
[0226] In a possible design, the electronic device obtains the first picture and the third picture in the following manner: calling the first picture and the third picture according to the file names of the first picture and the third picture, respectively; wherein the file name of the first picture is: the layout type of the digital clock, the value of the number on the digital clock that partially overlaps with the target control, and the positional relationship between the first picture and the digital clock; and the file name of the third picture is: the clock layout type of the digital clock, the value of the number on the digital clock that partially overlaps with the target control, and the positional relationship between the third picture and the digital clock.
[0227] For example, the layout type of the digital clock is a single clock layout, the value of the numbers on the digital clock that partially overlap with the target control is 0, the position relationship between the first picture and the digital clock is that the first picture is the background of the digital clock, and the position relationship between the first picture and the digital clock is that the first picture is the foreground of the digital clock. In this example, the file name of the first picture is: single_digit0_bg.png, and the file name of the second picture is: single_digit0_fg.png.
[0228] In a possible design, the size of the first part of the target control is smaller than the size of the first image, and the size of the second part of the target control is smaller than the size of the second image. In this design, the target control does not fill the entire superimposed image, that is, there is a transparent hollow area in the image to be displayed. In this way, when the image to be displayed is displayed in the off-screen display state, only the pixels in the area where the target control is located need to emit light, which can prevent screen burn-in.
[0229] In one possible design, each digit included in the digital clock corresponds to three groups of image resources. The three groups of image resources include a group of image resources corresponding to a single clock layout and two groups of image resources corresponding to two clocks in a dual clock layout. Each group of image resources includes a first image as a background layer and a second image as a foreground layer.
[0230] In a possible design, the image formats of the first image, the second image and the third image are all in the image file storage png format. In the to-be-displayed picture generated by superimposing the first image, the second image and the third image, the other areas except the numbers and the target controls on the digital clock are transparent hollow effects.
[0231] In a possible design, the target control may be a pattern, including but not limited to a bird pattern, a fish picture, a fan pattern, etc. The target control may also include at least two patterns, for example, the target control is composed of two fish, one fish is superimposed on the first number on the digital clock as the first part of the target control, and becomes the background of the first number, and the other fish is superimposed on the first number as the second part of the target control, and becomes the foreground of the first number, so that the generated image to be displayed includes the target control composed of two fish.
[0232] In a possible design, when the display screen is in the off-screen display state, the first information can also be displayed, wherein the color of the first information can be set to be consistent with the color of the digital clock. For example, the first information may include but is not limited to location, icon, date, push message and other information, for example Figure 6 The information marked by the dotted box 602 in FIG. Figure 7 The information marked by the dotted box 702 and the dotted box 704 has a first information whose color is set to be consistent with the digital color of the digital clock, which helps to improve the user experience.
[0233] In one possible design, the method may also include: the electronic device detects a click operation on the target control, and in response to the click operation, plays the time of a digital clock.
[0234] In the embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of the electronic device as the execution subject. In order to implement the functions in the methods provided by the embodiments of the present application, the electronic device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
[0235] When hardware is used for implementation, the hardware implementation of the electronic device can refer to Fig.11 and its related description.
[0236] See also Fig.11The electronic device 100 includes: a touch screen 1101, wherein the touch screen 1101 includes a touch panel 1107 and a display screen 1108; one or more processors 1102; a memory 1103; one or more applications (not shown); and one or more computer programs 1104. The sensor 1105 and the above-mentioned devices can be connected through one or more communication buses 1106. The one or more computer programs 1104 are stored in the above-mentioned memory 1103 and are configured to be executed by the one or more processors 1102. The one or more computer programs 1104 include instructions, and the above-mentioned instructions can be used to execute the method in any of the above-mentioned embodiments.
[0237] An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method for displaying time in the above-mentioned embodiment.
[0238] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the method for displaying time in the above-mentioned embodiment.
[0239] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the translation method in the above-mentioned method embodiments.
[0240] Among them, the electronic device, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0241] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0242] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0243] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0244] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0245] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0246] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for displaying time, applied to an electronic device having a display screen, characterized in that: The method comprises: Acquire a first picture, a second picture, and a third picture, wherein the first picture includes a first portion of a target control, the second picture includes a second portion of the target control, and the third picture includes a digital clock; sequentially superimposing the first picture, the third picture and the second picture to generate a picture to be displayed, wherein in the picture to be displayed, the first part and the second part of the target control constitute the target control, and the target control overlaps with at least one digital part of the digital clock; When the display screen is in the screen-off display state, displaying the picture to be displayed; Among them, when the values of the foreground image position and the background image position are both 0, as the time of the digital clock changes, the image serving as the foreground layer and the image serving as the background layer do not change; when the values of the foreground image position and the background image position are both 1, the target control is displayed at the position of the first digit of the digital clock, and when the value of the first digit changes, the foreground image and background image corresponding to the first digit are displayed at the position of the first digit; when the values of the foreground image position and the background image position are both 2, the target control is displayed at the position of the second digit of the digital clock, and when the value of the second digit changes, the foreground image and background image corresponding to the second digit are displayed at the position of the second digit; wherein the value of the foreground image position is the display position of the image representing the foreground layer in the screen-off display layout on the digital clock, and the value of the background image position is the display position of the image representing the background layer in the screen-off display layout on the digital clock.
2. The method according to claim 1, characterized in that The digital clock includes numbers for representing hours and numbers for representing minutes, and the numbers for representing hours and the numbers for representing minutes are located in different rows; the numbers for representing hours include a first number located in the tens place and a second number located in the ones place; the target control included in the screen to be displayed partially overlaps with the first number.
3. The method according to claim 1 or 2, characterized in that Get the first picture and the second picture, including: Calling the first picture and the second picture according to the file names of the first picture and the second picture respectively; Among them, the file name of the first picture is: the layout type of the digital clock, the value of the number on the digital clock that partially overlaps with the target control, and the positional relationship between the first picture and the digital clock; the file name of the second picture is: the clock layout type of the digital clock, the value of the number that partially overlaps with the target control, and the positional relationship between the second picture and the digital clock.
4. The method according to claim 1 or 2, characterized in that: The size of the first part of the target control is smaller than the size of the first picture, and the size of the second part of the target control is smaller than the size of the second picture.
5. The method according to claim 1 or 2, characterized in that: The layout of the digital clock is a single clock layout or a dual clock layout.
6. The method according to claim 1 or 2, characterized in that: Each digit included in the digital clock corresponds to three groups of image resources, and the three groups of image resources include a group of image resources corresponding to a single clock layout and two groups of image resources corresponding to two clocks in a dual clock layout, each group of image resources includes a first image as a background layer and a second image as a foreground layer.
7. The method according to claim 1 or 2, characterized in that: The picture formats of the first picture, the second picture and the third picture are all image file storage png format.
8. The method according to claim 1 or 2, characterized in that: The target control is a bird pattern.
9. The method according to claim 1 or 2, characterized in that: Also includes: When the display screen is in the screen-off display state, first information is displayed; wherein the color of the first information is set to be consistent with the digital color of the digital clock.
10. The method according to claim 1 or 2, characterized in that: The method further comprises: Detecting a click operation on the target control; In response to the click operation, the time of the digital clock is played.
11. An electronic device, characterized in that: Including processor, memory, display screen; The display screen is used to display a user interface; The memory is used to store one or more computer programs, and when the computer programs are executed by the processor, the electronic device performs: Acquire a first picture, a second picture, and a third picture, wherein the first picture includes a first portion of a target control, the second picture includes a second portion of the target control, and the third picture includes a digital clock; sequentially superimposing the first picture, the third picture and the second picture to generate a picture to be displayed, wherein in the picture to be displayed, the first part and the second part of the target control constitute the target control, and the target control overlaps with at least one digital part of the digital clock; When the display screen is in a screen-off display state, displaying the picture to be displayed; Among them, when the values of the foreground image position and the background image position are both 0, as the time of the digital clock changes, the image serving as the foreground layer and the image serving as the background layer do not change; when the values of the foreground image position and the background image position are both 1, the target control is displayed at the position of the first digit of the digital clock, and when the value of the first digit changes, the foreground image and background image corresponding to the first digit are displayed at the position of the first digit; when the values of the foreground image position and the background image position are both 2, the target control is displayed at the position of the second digit of the digital clock, and when the value of the second digit changes, the foreground image and background image corresponding to the second digit are displayed at the position of the second digit; wherein the value of the foreground image position is the display position of the image representing the foreground layer in the screen-off display layout on the digital clock, and the value of the background image position is the display position of the image representing the background layer in the screen-off display layout on the digital clock.
12. The electronic device according to claim 11, characterized in that: The digital clock includes numbers for representing hours and numbers for representing minutes, and the numbers for representing hours and the numbers for representing minutes are located in different rows; the numbers for representing hours include a first number located in the tens place and a second number located in the ones place; the target control included in the screen to be displayed partially overlaps with the first number.
13. The electronic device according to claim 11 or 12, characterized in that: When the computer program is executed by the processor, the electronic device further executes: Calling the first picture and the second picture according to the file names of the first picture and the second picture respectively; Among them, the file name of the first picture is: the layout type of the digital clock, the value of the number partially overlapping with the target control, and the positional relationship between the first picture and the digital clock; the file name of the second picture is: the clock layout type of the digital clock, the value of the number on the digital clock partially overlapping with the target control, and the positional relationship between the second picture and the digital clock.
14. The electronic device according to claim 11 or 12, characterized in that: The size of the first part of the target control is smaller than the size of the first picture, and the size of the second part of the target control is smaller than the size of the second picture.
15. The electronic device according to claim 11 or 12, characterized in that: The layout of the digital clock is a single clock layout or a dual clock layout.
16. The electronic device according to claim 11 or 12, characterized in that: Each digit included in the digital clock corresponds to three groups of image resources, and the three groups of image resources include a group of image resources corresponding to a single clock layout and two groups of image resources corresponding to two clocks in a dual clock layout, each group of image resources includes a first image as a background layer and a second image as a foreground layer.
17. The electronic device according to claim 11 or 12, characterized in that: The picture formats of the first picture, the second picture and the third picture are all image file storage png format.
18. The electronic device according to claim 11 or 12, characterized in that: The target control is a bird pattern.
19. The electronic device according to claim 11 or 12, characterized in that: When the computer program is executed by the processor, the electronic device further executes: When the display screen is in the screen-off display state, first information is displayed; wherein the color of the first information is set to be consistent with the digital color of the digital clock.
20. The electronic device according to claim 11 or 12, characterized in that: When the computer program is executed by the processor, the electronic device further executes: Detecting a click operation on the target control; In response to the click operation, the time of the digital clock is played.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Screen-off display control method and terminal device
CN110149442A
Virtual gift special effect synthesis method and device and live streaming system
CN110536151A