WO2021190489A1 - 一种显示时间的方法及电子设备 - Google Patents

一种显示时间的方法及电子设备 Download PDF

Info

Publication number
WO2021190489A1
WO2021190489A1 PCT/CN2021/082340 CN2021082340W WO2021190489A1 WO 2021190489 A1 WO2021190489 A1 WO 2021190489A1 CN 2021082340 W CN2021082340 W CN 2021082340W WO 2021190489 A1 WO2021190489 A1 WO 2021190489A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
target control
electronic device
digital clock
clock
Prior art date
Application number
PCT/CN2021/082340
Other languages
English (en)
French (fr)
Inventor
黄丽薇
张晶
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US17/913,071 priority Critical patent/US20230143866A1/en
Priority to EP21775242.7A priority patent/EP4116822A4/en
Publication of WO2021190489A1 publication Critical patent/WO2021190489A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G9/00Visual time or date indication means
    • G04G9/08Visual time or date indication means by building-up characters using a combination of indicating elements, e.g. by using multiplexing techniques
    • G04G9/087Visual time or date indication means by building-up characters using a combination of indicating elements, e.g. by using multiplexing techniques provided with means for displaying at will a time indication or a date or a part thereof
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G21/00Input or output devices integrated in time-pieces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Definitions

  • the present invention relates to the technical field of electronic equipment, and in particular to a method and electronic equipment for displaying time.
  • AOD always on display
  • the pattern When displaying a digital clock on the screen display interface of an electronic device, the pattern can be displayed as the background or foreground of the digital clock.
  • the current screen display effect is: the positional relationship between the digital clock and the pattern is a front-to-back relationship.
  • the digital clock is superimposed on the pattern to form the visual effect of the number in front and the pattern is behind; the other is the pattern is superimposed on the digital clock to form the visual effect of the pattern in front and the number in the back, these two display effects All are single, and cannot satisfy the user's pursuit of richer display effects.
  • the embodiments of the present application provide a method and electronic device for displaying time, so as to provide users with richer display effects when the digital clock is displayed in the on-screen display state of the electronic device.
  • 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 includes: the electronic device acquires a first picture, a second picture, and a third picture, where the first picture includes a target The first part of the control, the second picture includes the second part of the target control, and the third picture includes a digital clock; the electronic device sequentially superimposes the first picture, the third picture, and the second picture to generate a 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 off-screen display state, the picture to be displayed is displayed.
  • the electronic device sequentially superimposes the first picture including the first part of the target control, the third picture including the digital clock, and the second picture including the second part of the target control to generate the to-be-displayed picture, and then the to-be-displayed picture is generated.
  • the first part and the second part of the target control form the target control, which can form the first part of the target control to be displayed behind the number, and the second part of the target control is displayed in front of the number.
  • this solution can provide users with a richer display effect when the digital clock is displayed on the electronic device in the on-screen display state.
  • the digital clock includes a number for the hour and a number for the minute, and the number for the hour and the number for the minute are on different lines; the numbers for the hour include The first number in the tens place and the second number in the ones place; the target control included in the picture to be displayed partially overlaps the first number.
  • the first number is the number in the ten's place that represents the hour, and its possible values are 0, 1, and 2.
  • the first number changes within the 24-hour time period. 3 times, compared with the second number, third number, and fourth number, the change frequency is lower, which can save power consumption.
  • the electronic device obtains the first picture and the third picture, which can be implemented in the following manner: call the first picture and the third picture according to the file names of the first picture and the third picture, respectively;
  • the file name of one picture the layout type of the digital clock, the value of the number partially overlapping the target control on the digital clock, the positional relationship between the first picture and the digital clock, and the file name of the third picture: the clock layout of the digital clock
  • the layout type of the digital clock is a single clock layout, and the value of the number partially overlapping the target control on the digital clock is 0.
  • the positional relationship between the first picture and the digital clock is that the first picture is the background of the digital clock.
  • the positional relationship between the first picture and the digital clock is that the first picture is the foreground of the digital clock.
  • the file name of the first picture is: single_digit0_bg.png
  • the file name of the second picture is: single_digit0_fg.png.
  • the size of the first part of the target control is smaller than the size of the first picture
  • the size of the second part of the target control is smaller than the size of the second picture.
  • the target control does not fill the entire superimposed picture, that is, there is a transparent hollow area in the picture to be displayed, so that when the picture to be displayed is displayed in the state of the screen display, only the area where the target control is located is required
  • the pixels emit light to prevent burn-in.
  • the layout of the digital clock can be a single clock layout or a dual clock layout.
  • each number included in the digital clock corresponds to three sets of picture resources
  • the three sets of picture resources include one set of picture resources corresponding to a single-clock layout and two sets of picture resources corresponding to two clocks in a dual-clock layout.
  • Each group of picture resources includes the first picture as the background layer and the second picture as the foreground layer.
  • the picture formats of the first picture, the second picture, and the third picture are all image file storage png formats.
  • all areas except for the numbers on the digital clock and the target controls are transparent hollowed out effects.
  • the target control may be a pattern, including but not limited to a bird pattern, a fish picture, a fan pattern, and so on.
  • the target control may also include at least two patterns.
  • the target control is composed of two fishes. One fish is used as the first part of the target control to be superimposed with the first number on the digital clock to become the background of the first number, and the other fish is the target control. The second part of is superimposed with the first number, and becomes the foreground of the first number.
  • the to-be-displayed picture thus generated includes a target control composed of two fishes.
  • the first information 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 digital color of the digital clock.
  • the first information may include, but is not limited to, information such as location, icon, date, push message, etc.
  • the color of the first information is set to be consistent with the digital color of the digital clock, which helps to improve user experience.
  • the method may further include: the electronic device detects a click operation on the target control, and in response to the click operation, playing the time of the digital clock.
  • an embodiment of the present application provides an electronic device, including 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 the computer
  • the electronic device is caused to execute: acquiring a first picture, a second picture, and a third picture, where the first picture includes the first part of the target control, and the second picture includes the second part of the target control ,
  • the third picture includes a digital clock; the first picture, the third picture, and the second picture are sequentially superimposed to generate the to-be-displayed picture.
  • the first part and the second part of the target control form the target control
  • the control part overlaps with at least one digit of the digital clock; when the display screen is in the off-screen display state, the picture to be displayed is displayed.
  • the digital clock includes a number for the hour and a number for the minute, and the number for the hour and the number for the minute are on different lines; the numbers for the hour include The first number in the tens place and the second number in the ones place; the target control included in the picture to be displayed partially overlaps the first number.
  • the electronic device 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; Among them, the file name of the first picture: the layout type of the digital clock, the value of the number partially overlapping the target control, the positional relationship between the first picture and the digital clock, and the file name of the third picture: the clock layout of the digital clock The type, the value of the number that partially overlaps the target control, and the positional relationship between the third picture and the digital clock.
  • the size of the first part of the target control is smaller than the size of the first picture
  • the size of the second part of the target control is smaller than the size of the second picture
  • the layout of the digital clock is a single-clock layout or a dual-clock layout.
  • each number included in the digital clock corresponds to three sets of picture resources
  • the three sets of picture resources include one set of picture resources corresponding to a single-clock layout and two sets of picture resources corresponding to two clocks in a dual-clock layout.
  • Each group of picture resources includes the first picture as the background layer and the second picture as the foreground layer.
  • the picture formats of the first picture, the second picture, and the third picture are all image file storage png formats.
  • the target control is a bird pattern.
  • the target control includes at least two patterns.
  • the electronic device when the computer program is executed by the processor, the electronic device is caused to also execute: display the first information when the display screen is in the off-screen display state; wherein, the color of the first information It can be set to match the digital color of the digital clock.
  • the electronic device when the computer program is executed by the processor, the electronic device also executes: detecting a click operation on the target control; and in response to the click operation, playing the time of the digital clock.
  • an embodiment of the present application also provides an electronic device, which includes a module/unit that executes any one of the possible design methods in any of the foregoing aspects.
  • These modules/units can be realized by hardware, or by hardware executing corresponding software.
  • an embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium includes a computer program.
  • the computer program runs on an electronic device, the electronic device executes any of the above aspects. Any one of the possible design methods.
  • the embodiments of the present application also provide a method that includes a computer program product, which when the computer program product runs on a terminal, causes the electronic device to execute any one of the possible designs in any of the above-mentioned aspects.
  • FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • FIG. 2 is a block diagram of the software structure of an electronic device provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of a user interface provided by an embodiment of the application.
  • Fig. 4a is a schematic diagram of an information screen display interface provided by an embodiment of the present application.
  • Figure 4b is a schematic diagram of another screen display interface provided by an embodiment of the present application.
  • FIG. 4c is a schematic diagram of another screen display interface provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an on-screen display process provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a single clock layout provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a dual clock layout provided by an embodiment of the present application.
  • FIG. 8a is a schematic diagram of a single-clock picture resource specification provided by an embodiment of the present application.
  • FIG. 8b is a schematic diagram of a dual-clock picture resource specification provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another screen display process provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of an on-screen display method according to an embodiment of the application.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the screen display state refers to the state where the screen is off.
  • the rest screen display area is the area used to display information on the display panel when the electronic device is in the rest screen display mode.
  • some of the sub-pixels of the display panel can be in the on state (that is, the display panel is illuminated). Part of the sub-pixels), other sub-pixels are in the off state, so that some areas of the display panel are kept in a constant light state, and the remaining areas are in a black screen state.
  • This constant light area can be referred to as a screen display area.
  • the various embodiments disclosed in the present application can be applied to an electronic device provided with a display screen, and the electronic device has an on-screen display function.
  • the electronic device may be a portable electronic device containing 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), Vehicle equipment, etc.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the aforementioned portable electronic device may also be, for example, a laptop computer with a touch-sensitive surface (such as a touch panel). It should also be understood that in some other embodiments of the present application, the above-mentioned electronic device may also be a desktop computer with a touch-sensitive surface (such as a touch panel).
  • FIG. 1 exemplarily shows a schematic structural diagram of an electronic device 100.
  • 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 different components. 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.
  • 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, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , The display screen 194, and the subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • 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, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 110, and improving the efficiency of the system.
  • the processor 110 may run the method for displaying on-screen display provided by the embodiment of the present application.
  • the processor 110 integrates different devices, such as integrated CPU and GPU, the CPU and GPU can cooperate to execute the operation prompt method provided in the embodiment of the present application.
  • the operation prompt method part of the algorithm is executed by the CPU, and the other part of the algorithm is executed by the GPU. Execute to get faster processing efficiency.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver ( universal asynchronous receiver/transmitter, UART interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface , And/or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART mobile industry processor interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • 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 peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • 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 charge 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 times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like 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), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and 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.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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), broadband Code division multiple access (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, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 may be an integrated flexible display screen, or a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may 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 realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • 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 magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • 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.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • 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 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various 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 electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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 to the outside 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 the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • 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 the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • a fingerprint sensor may be arranged on the front of the electronic device 100 (below the display screen 194), or a fingerprint sensor may be arranged on the back of the electronic device 100 (below the rear camera).
  • 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.
  • the fingerprint sensor may be configured in the touch screen, may be a part of the touch screen, or may be configured in the touch screen in other ways.
  • the fingerprint sensor can also be implemented as a full panel fingerprint sensor. Therefore, the touch screen can be regarded as a panel that can collect fingerprints at any position.
  • the fingerprint sensor may process the collected fingerprint (for example, whether the fingerprint is verified) and send it to the processor 110, and the processor 110 will make corresponding processing according to the fingerprint processing result.
  • the fingerprint sensor may also send the collected fingerprint to the processor 110, so that the processor 110 can process the fingerprint (for example, fingerprint verification, etc.).
  • the fingerprint sensor in the embodiments of the present application can use any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technology.
  • the temperature sensor 180J is used to detect temperature.
  • 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 value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 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.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is 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.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • 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.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards 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 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the electronic device 100 may also include a Bluetooth device, a positioning device, a flashlight, a miniature projection device, a near field communication (NFC) device, etc., which will not be repeated here.
  • a Bluetooth device a positioning device
  • a flashlight a miniature projection device
  • NFC near field communication
  • FIG. 1 describes the hardware structure of the electronic device 100.
  • the following embodiments take an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 by way of example.
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
  • the software structure of electronic equipment adopts a layered architecture.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages. As shown in Figure 2, the application package can include applications such as phone, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and 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.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • 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.
  • GUI graphical user interface
  • Controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets ( widget) and other visual interface elements.
  • FIG. 3 shows an example of a user interface 300 displayed on the display screen 194 of the electronic device 100.
  • the user interface 300 is an on-screen display interface of an electronic device.
  • the user interface 300 may include a digital clock 301, which may include time numbers, and the layout style of the digital clock may be a horizontal display, that is, the numbers used to indicate the hours and the numbers used to indicate the minutes are in the same row (or row). ) Display, it should be understood that FIG. 3 does not limit the layout style of the digital clock in the embodiment of the present application.
  • the layout style of the digital clock in the present application can also be other styles, such as double-row display, as shown in Figure 4a, or Figure 4b, Or as shown in Figure 4c, that is, the number used to represent the hour and the number used to represent the minute are not displayed in the same row (or row), it can be the number used to represent the hour in the first row (or row), used to represent the minute The number of is displayed in the second row (or row), it can also be the number used to represent the minute in the first row (or row), and the number used to represent the hour is displayed in the second row (or row).
  • double-row display as shown in Figure 4a, or Figure 4b, Or as shown in Figure 4c, that is, the number used to represent the hour and the number used to represent the minute are not displayed in the same row (or row), it can be the number used to represent the hour in the first row (or row), used to represent the minute
  • the number of is displayed in the second row (or row)
  • it can also be the number used to represent the minute in the
  • the user interface 300 may also include a date 302, a weather widget 303, etc., and may also include icons 304 of various applications, such as WeChat icons, phone icons, short message icons, and remaining battery power. .
  • the user interface 300 may further include a push message 305, such as a WeChat message reminder.
  • FIG. 3 only exemplarily shows the screen display interface on the electronic device 100, and does not constitute a limitation to the embodiment of the present application.
  • the bird pattern is used as the background or foreground of the digital clock.
  • the visual effects formed mainly include two types: one is shown in Figure 4a, where the time is superimposed on the bird pattern. On the above, the visual effect of time is before and the pattern of birds is formed; another is shown in Figure 4b, where the pattern of birds is superimposed on time, forming the visual effect of the pattern of birds before and time after. These visual effects are relatively single, and cannot satisfy the user's pursuit of richer display effects.
  • the present application provides a method for displaying time, which is suitable for an electronic device with a display screen, and the electronic device has an on-screen display function.
  • the electronic device obtains the first picture, the second picture, and the third picture, where 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, The first picture, the third picture, and the second picture are sequentially superimposed to generate a picture to be displayed.
  • the first part of the target control becomes the background (background, bg) of the digital clock
  • the second part of the target control becomes the number
  • the foreground (foreground, fg) of the clock, the first part as the background and the second part as the foreground form a complete target control
  • the target control overlaps with at least one digital part of the digital clock, for example, the target control is a complete
  • the pattern of the bird as shown in Figure 4c
  • the first picture includes the first part of the target control, which is the tail of the bird
  • the second picture includes the digital clock
  • the third picture includes the second part of the target control, which is the predecessor part of the bird.
  • the tail of the bird is used as the background of the number "0" included in the digital clock, and the front part of the bird is used as the foreground of the number "0", forming the first part of the target control at the number "0"
  • the visual effect of the second part of the target control interspersed behind the number "0", compared with the display effect of the number "0” forming a single back-and-forth relationship with the entire target control, the time displayed in this application is The method can provide users with richer display effects when the electronic device is in the off-screen display state to display the digital clock.
  • the method for displaying time provided in the embodiments of the present application is not only applicable to digital clocks, but also applicable to analog clocks. In the following embodiments, only digital clocks are used as an example for introduction.
  • the digital clock may be in a 24-hour system or a 12-hour system.
  • the following embodiments will take the digital clock in the 24-hour system as an example for introduction.
  • the time on the digital clock is 08:08, and the time on the digital clock includes a number for the hour and a number for the minute, the number for the hour and the time
  • the numbers for minutes are on different lines.
  • the number used to represent the hour includes the first number in the tens place and the second number in the ones place.
  • the first number can take values such as 0, 1, 2, and the second number can take 0, 1, 2... 9 and other values.
  • the numbers used to represent minutes include the third number in the tens place and the fourth number in the ones place.
  • the third number can take values such as 0, 1, 2...6, and the fourth number can take 0, 1, 2... ...9 and other values.
  • the target control can be superimposed with any one or more of the first number, second number, third number, and fourth number on the digital clock to obtain the picture to be displayed.
  • the target control in the picture to be displayed and any one or more The numbers are superimposed to form a visual effect interspersed with each other.
  • the target control and a number on the digital clock are superimposed to obtain a picture to be displayed as an example for description.
  • the bird pattern can be superimposed with the first number on the digital clock to obtain the picture to be displayed.
  • the bird pattern overlaps with the first number to form an interpenetrating pattern.
  • the first number is a number in the tens place that represents the hour, and its possible values are 0, 1, and 2.
  • the first number changes 3 times within the 24-hour timekeeping time. Compared with the second, third, and fourth digits, the frequency of change is lower. Compared with the bird’s pattern and other digits (such as the second digit, the third digit, and the fourth digit), the bird’s pattern is superimposed and displayed. Superimposing the display with the first number can save power consumption.
  • 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 of displaying the time in the embodiment of the present application.
  • the value of the first number is "0"
  • a part of the target control is in the foreground layer
  • the other part is in the background layer.
  • the picture 501 of the foreground layer includes the first part of the bird
  • the picture 502 includes the number "0”
  • the picture 503 in the background layer includes the second part of the bird
  • the picture 501, the picture 502, and the picture 503 are superimposed to obtain the picture 504.
  • the first part of the bird in the picture 504 is composed of the second part of the bird A complete bird pattern.
  • the target control (bird pattern) and the number "0" form a visual effect that intersects 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 in front of the number "0".
  • the visual effect behind the number "0"
  • the value of the first number is "1"
  • a part of the target control is in the foreground layer
  • the other part is in the background layer.
  • the picture 511 of the foreground layer includes the first part of the bird
  • the digital layer includes the picture 512 of includes the number "1”
  • the picture 513 in the background layer includes the second part of the bird
  • the picture 511, the picture 512, and the picture 513 are superimposed to obtain the picture 514.
  • the first part of the bird and the second part of the bird in the picture 514 Compose a complete bird pattern.
  • the target control (bird pattern) and the number "1" form a visual effect that intersects each other, that is, the first part of the bird is in front of the number "1" and the second part of the bird The visual effect behind the number "1".
  • the first number takes the value "2"
  • the target controls are all in the foreground layer.
  • the picture 521 of the foreground layer includes a whole bird
  • the picture 522 of the digital layer includes the number "2”.
  • the picture 524 is obtained after the picture 521, the picture 522, and the picture 523 are superimposed.
  • the target control (bird's pattern) is completely in front of the number "2".
  • the value of the first digit of the digital clock is different.
  • the target control can be divided into different segments, each with different values.
  • the first part of the target control in the picture of the corresponding foreground layer is different, and the second part of the target control in the picture of the background layer corresponding to each value is different, so each value corresponds to the foreground layer, digital layer, and background.
  • the visual effects of the target control (bird's pattern) and the first number are different, so that the bird's pattern and the shape of the number can be flexibly combined
  • the time of the digital clock changes different superimposed effects are displayed, thereby providing users with richer visual effects.
  • any picture format among the pictures in the background layer, the pictures in the digital layer, and the pictures in the foreground layer is in an image file storage (portable network graphic, png) format, so that the pictures in the background layer and the pictures in the foreground layer
  • the area except the bird pattern is transparent hollowed out effect
  • the area except the numbers in the digital layer picture is transparent hollowed out effect
  • these three layers of pictures will not affect the display of the numbers on the digital clock. Will not affect the display of bird patterns.
  • only the pixels in the area where the digital clock and the target control (bird's pattern) are located on the to-be-displayed screen are required to emit light, which can save power consumption.
  • the above example only uses the superposition of the first number and the bird pattern as an example to introduce the visual effect of the screen display.
  • the display time method of the second number, the third number, and the fourth number superimposed on the target control can be referred to the relevant description of the above example. I won't repeat them here.
  • the layout of the digital clock may be a single clock layout as shown in FIG. 6.
  • a digital clock 601 is displayed on the screen display interface.
  • the electronic device can obtain the current geographic location.
  • the location is set to the time of the digital clock 601 according to the time zone of the current geographic location.
  • the layout of the digital clock can also be a dual clock layout as shown in Figure 7.
  • the dual clocks can display the time in two different locations.
  • the digital clock is displayed on the screen display interface 701 and digital clock 703, for example, the time corresponding to digital clock 701 is the local time and date in Hohhot, China, the house icon is displayed below digital clock 701 (as shown in dotted box 702), and the time of digital clock 701 is home The time in the time zone of the location.
  • the time corresponding to the digital clock 703 is the local time and date in Amsterdam, a positioning icon (as shown in the dashed box 704) is displayed under the digital clock 703, and the time of the digital clock 703 is the time in the time zone of the current location of the electronic device.
  • the first number can take values of 0, 1, and 2.
  • Each value of the first number can correspond to three sets of image resources, including one set of single-clock image resources and two sets Dual clock picture resources.
  • a group of image resource file names can be named: clock type_digitaln_background.png and clock type_digitaln_foreground.png, where single clock is prefixed with single and dual clock is prefixed with dual. For example, if the value of the first digit is "0", the number n can be expressed as digit 0; if the value of the first digit is "1", then the number n can be expressed as digit1; The value of the number is "2", then the number n can be expressed as digit2.
  • the file names of the corresponding group of single-clock image resources are: single_digit2_bg.png and single_digit2_fg.png
  • the file names of the corresponding two groups of dual-clock image resources are: dual1_digit2_bg.png, dual1_digit2_fg.png, dual2_digit2_bg.png, dual2_digit2_fg.png.
  • the picture specification of the picture resource can be set to a fixed size, which does not change with the change of time numbers.
  • the width corresponding to the picture specification of the single-clock picture resource can be set to be consistent with the width of the display screen, as shown in FIG. 8a, the width is 360dp and the height is 248dp.
  • the picture specifications of each dual-clock picture resource may be 180 dp in width and 248 dp in height as shown in FIG. 8b.
  • the size of the target control is smaller than the size of the picture.
  • the picture 810 shown in Figure 8a the size of the picture is 360dp wide and 248dp high.
  • the bird pattern in the picture 811 does not fill the entire picture, that is, the picture 810 has a transparent hollow area, so that when the picture 810 is displayed on the screen display interface, only the pixels in the area where the bird pattern 811 is located are required to emit light, which can prevent screen burn-in.
  • setting the picture size to a larger size can support the display of target controls of various shapes and sizes.
  • it will not be limited to the size of one target control, resulting in replacement of other sizes. Cannot be displayed when the target control is large.
  • the layout style of the data clock may be a horizontal display style as shown in FIG. 3, or a double-row display style as shown in FIG. 4a, FIG. 4b, and FIG. 4c.
  • the value of the position of the foreground picture may indicate the display position of a part of the target control in the picture of the foreground layer on the digital clock
  • the value of the position of the background picture may indicate the other value of the target control in the picture of the background layer.
  • the optional values of the foreground picture position and the background picture position are 0, 1, and 2. When the value of the current scene picture position and the background picture position is "0", it means that the time If there is a change, the corresponding foreground layer picture and background layer picture will not change.
  • the target control is displayed at the position of the first digit. Since the value of the first digit of the 24-hour digital clock can be 0, 1, 2, every One value can correspond to three sets of image resources.
  • the names of the above image resources must match and cannot be changed.
  • 0, 1, and 2 are displayed in the position of the first number
  • the image of the foreground layer and the background layer corresponding to the value of the first number are displayed in the position of the first number. Therefore, according to the change of the value of the first number, different visual effects of the target control and the first number can be displayed.
  • each value can correspond to three sets of image resources.
  • the target control can also be displayed on the number representing the minute of the digital clock.
  • the values of the foreground picture position and the background picture position can also be selected as 3 and 4.
  • the target control is displayed at the position of the third digit, because the value of the third digit of the 24-hour digital clock can be 0, 1, 2... 6.
  • Each value can correspond to three sets of image resources.
  • each value can correspond to three sets of image resources.
  • image resources please refer to the name of the image resource corresponding to each value of the second number when the value of the current scene image position and the background image position is "2" , I won’t repeat it here.
  • the numbers of the digital clock are in picture format, and the color of the numbers cannot be changed.
  • the colors of other information and numbers may be different.
  • the color of other information can be set and changed. Generally, the default color can be set to white. When you need to modify the color of other information, you can do so by modifying the value of item fondcolor in the theme.xml file.
  • the digital clock 601 displays the date (such as Gregorian calendar date, lunar calendar date, etc.), various application icons, and battery power information (such as dotted box 602).
  • the color of the marked information can be set, so that the color of the information marked by the dashed frame 602 can be changed so that the color of the digital clock displayed on the screen display interface is consistent with the color of other information, which helps to improve the user experience.
  • the digital clock 701 displays location, icon, date (such as Gregorian calendar date, day of the week, etc.) and other information (such as the information marked by the dotted box 702)
  • the color can be set.
  • the location, icon, date (such as Gregorian calendar date, week, etc.) displayed under the digital clock 703 (such as the information marked by the dotted box 704) can be set, so that you can change the dotted line
  • the color of the information marked by the box 702 and the dashed box 704 makes the digital clock displayed on the screen display interface consistent with the color of other information, which helps to improve the user experience.
  • the target control may be the bird pattern in the above example, or the pattern of other objects, including but not limited to the pattern of flowers, the pattern of the moon, the pattern of fans, etc., which are not listed here.
  • the target control includes a pattern of an object (such as a bird), and a digital superimposed display of the target control and the digital clock is taken as an example for introduction.
  • the target control may be superimposed on multiple numbers of the digital clock to form an interspersed visual effect. It should be understood that the target control may be a pattern of one object, or may include patterns of multiple objects.
  • the following takes the target control including the pattern of two objects as an example, the two objects are respectively different patterns of goldfish, and the target control and two numbers are superimposed and displayed as an example to introduce another possible way of displaying the time of this application. Method to realize.
  • the target controls include Goldfish 01 in the picture 901 and Goldfish 02 in the picture 903.
  • the picture 902 includes a digital clock.
  • the picture 901, the picture 902, and the picture 903 are superimposed.
  • the goldfish 01 in the picture 901 is used as the two digital clocks.
  • the background layer of the numbers (the first number and the third number) the goldfish 02 in the picture 903 is used as the foreground layer of the two numbers (the first number and the third number) of the digital clock, and then the to-be-displayed image 904 is obtained.
  • goldfish 01 and goldfish 02 form the target control, which can form goldfish 01 behind the first number (value 0) and the third number (value 0) (ie the background), and goldfish 02 in the first number ( The visual effect of interspersed in front of the third number (the value is 0) (that is, the background).
  • the goldfish 01 in the picture 901 and the goldfish 02 in the picture 903 can also form an interspersed visual effect with only one digital superimposed display of the digital clock, or can be formed with three digital superimposed displays of the digital clock.
  • the interspersed visual effect can also be superimposed and displayed with the four digits of the digital clock to form an interspersed visual effect.
  • the related content of the AOD layout can refer to the related content of the AOD layout in the foregoing embodiment, which will not be repeated here.
  • the to-be-displayed picture displayed on the screen display interface can always be displayed at the same position on the display screen, or it can be displayed by changing the position at intervals, for example, moving the first number of pixels every preset time period Display the to-be-displayed image, for example, you can move a few pixels every 1 minute to display the to-be-displayed image. Among them, the longer the preset duration is set, the larger the value of the first quantity. In this way, the display position of the electronic device that displays the picture to be displayed in the non-screen display state can be changed at regular intervals, so that the pixels that light up when the picture to be displayed are displayed on the display screen are different at regular intervals. In the case that the electronic device keeps illuminating the same pixels when displaying the to-be-displayed image in the non-screen display state, the risk of damage to the pixels can be reduced, thereby reducing the risk of screen burn-in of the electronic device.
  • the to-be-displayed image when the to-be-displayed image is displayed in the screen display state, the to-be-displayed image can be displayed in two non-overlapping areas at regular intervals, so that the two non-overlapping areas are illuminated when the to-be-displayed pattern is displayed.
  • the pixels are completely different, which can further reduce the risk of screen burn-in.
  • the embodiments of the present application provide a method for on-screen display, which can be implemented in an electronic device having the hardware structure shown in FIG. 1.
  • the method for displaying on the screen in the embodiment of the present application may include the following steps:
  • Step 1001 Obtain a first picture, a second picture, and a third picture, where 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 a digital clock.
  • the layout of the digital clock can be a single clock layout or a dual clock layout.
  • the first picture may be a picture 901
  • the second picture may be a picture 903
  • the third picture may be a picture 902
  • the target control may be a bird pattern.
  • step 1002 the first picture, the third picture, and the second picture are sequentially superimposed to generate a to-be-displayed picture.
  • the first part and the second part of the target control form the target control. At least one number partially overlaps.
  • the picture 901, the picture 903, and the picture 902 are superimposed to obtain a picture to be displayed as shown in the picture 904.
  • step 1003 when the display screen is in the off-screen display state, display the to-be-displayed picture.
  • the electronic device sequentially superimposes the first picture including the first part of the target control, the third picture including the digital clock, and the second picture including the second part of the target control to generate the to-be-displayed picture, and then the to-be-displayed picture is generated.
  • the first part and the second part of the target control form the target control, which can form the first part of the target control to be displayed behind the number, and the second part of the target control is displayed in front of the number.
  • the digital clock includes a number for representing the hour and a number for representing the minute, and the number for representing the hour and the number for representing the minute are located on different rows.
  • the number used to represent the hour and the number used to represent the minute included in the digital clock may also be located on the same line.
  • the number used to represent the hour includes a first number located in the tens place and a second number located in the ones place, and the target control included in the picture to be displayed partially overlaps the first number.
  • the first number is the number in the ten's place that represents the hour, and its possible values are 0, 1, and 2.
  • the first number changes three times within a 24-hour time period. Compared with The change frequency of the second number, third number, and fourth number is low, which can save power consumption.
  • the electronic device obtains the first picture and the third picture, which can be implemented in the following manner: call the first picture and the third picture according to the file names of the first picture and the third picture, respectively;
  • the file name of one picture the layout type of the digital clock, the value of the number partially overlapping the target control on the digital clock, the positional relationship between the first picture and the digital clock, and the file name of the third picture: the clock layout of the digital clock
  • the layout type of the digital clock is a single clock layout, and the value of the number partially overlapping the target control on the digital clock is 0.
  • the positional relationship between the first picture and the digital clock is that the first picture is the background of the digital clock.
  • the positional relationship between the first picture and the digital clock is that the first picture is the foreground of the digital clock.
  • the file name of the first picture is: single_digit0_bg.png
  • the file name of the second picture is: single_digit0_fg.png.
  • the size of the first part of the target control is smaller than the size of the first picture
  • the size of the second part of the target control is smaller than the size of the second picture.
  • the target control does not fill the entire superimposed picture, that is, there is a transparent hollow area in the picture to be displayed, so that when the picture to be displayed is displayed in the state of the screen display, only the area where the target control is located is required
  • the pixels emit light to prevent burn-in.
  • each number included in the digital clock corresponds to three sets of image resources.
  • the three sets of image resources include one set of image resources corresponding to a single-clock layout and two sets of image resources corresponding to two clocks in a dual-clock layout.
  • Each group of picture resources includes the first picture as the background layer and the second picture as the foreground layer.
  • the picture formats of the first picture, the second picture, and the third picture are all image file storage png formats.
  • all areas except for the numbers on the digital clock and the target controls are transparent hollowed out effects.
  • the target control may be a pattern, including but not limited to a bird pattern, a fish picture, a fan pattern, and so on.
  • the target control may also include at least two patterns.
  • the target control is composed of two fishes. One fish is used as the first part of the target control to be superimposed with the first number on the digital clock to become the background of the first number, and the other fish is the target control. The second part of is superimposed with the first number, and becomes the foreground of the first number.
  • the to-be-displayed picture thus generated includes a target control composed of two fishes.
  • the first information 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 digital color of the digital clock.
  • the first information may include, but is not limited to, information such as location, icon, date, push message, etc., such as the information marked by the dashed box 602 in FIG. 6, and for example, the information marked by the dashed box 702 and the dashed box 704 in FIG. Information, the color of the first information is set to be consistent with the digital color of the digital clock, which helps to improve the user experience.
  • the method may further include: the electronic device detects a click operation on the target control, and in response to the click operation, playing the time of the digital clock.
  • the method provided in the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a certain function among the above-mentioned functions is executed by a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
  • the hardware implementation of the electronic device can refer to FIG. 11 and related descriptions.
  • the electronic device 100 includes: a touch screen 1101, where 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 application programs (not shown) 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 aforementioned memory 1103 and are configured to be executed by the one or more processors 1102, and the one or more computer programs 1104 include instructions, and the aforementioned instructions can be used to execute any of the aforementioned instructions. The method in one embodiment.
  • the embodiment of the present application also provides a computer storage medium, the computer storage medium stores computer instructions, when the computer instructions run on the electronic device, the electronic device executes the above-mentioned related method steps to realize the display time in the above-mentioned embodiment method.
  • the embodiments of the present application also provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned related steps, so as to realize the method of displaying time in the above-mentioned embodiment.
  • the embodiments of the present application also provide a device.
  • the device may specifically be a chip, component or module.
  • the device may include a processor and a memory connected to each other.
  • the memory is used to store computer execution instructions.
  • the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the translation methods in the foregoing method embodiments.
  • the electronic devices, computer storage media, computer program products, or chips 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 corresponding methods provided above. The beneficial effects of the method are not repeated here.
  • the disclosed device and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • 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.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods of the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供一种显示时间的方法及电子设备,该方法应用于具有显示屏的电子设备,该方法包括: 电子设备获取第一图片、第二图片和第三图片,其中第一图片包括目标控件的第一部分,第二图片包括目标控件的第二部分,第三图片包括数字时钟,电子设备依次将第一图片、第三图片和第二图片叠加,生成待显示画面,其中,目标控件的第一部分和第二部分组成目标控件,目标控件与数字时钟的至少一个数字部分重叠,在显示屏处于息屏显示状态下,显示待显示画面。从而形成目标控件的第一部分显示在数字的后方,目标控件的第二部分显示在数字的前方的相互穿插的视觉效果,可实现在电子设备处于息屏显示状态下显示数字时钟时,为用户提供更丰富的显示效果。

Description

一种显示时间的方法及电子设备
相关申请的交叉引用
本申请要求在2020年03月25日提交中国专利局、申请号为202010219136.7、申请名称为“一种显示时间的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电子设备技术领域,尤其涉及一种显示时间的方法及电子设备。
背景技术
随着电子技术的发展,如智能手机、平板电脑等电子设备越来越普及,用户对电子设备的依赖程度也越来越高。以电子设备为手机为例,用户每天会点亮手机屏幕很多次,而大多数点亮手机屏幕是为了查看时间和各种通知等,为了满足人们对于电子设备的功能需求,很多电子设备设置了息屏显示(always on display,AOD)的功能,提升电子设备的显示效果以及用户体验。
在电子设备的息屏显示界面上显示数字时钟时,可将图案作为数字时钟的背景或前景显示,目前的息屏显示效果为:数字时钟与图案之间的位置关系是前后关系,其中一种为数字时钟叠加在图案之上,形成数字在前、图案在后的视觉效果;另一种为图案叠加在数字时钟之上,形成图案在前、数字在后的视觉效果,这两种显示效果均是单一,并不能满足用户对更丰富的显示效果的追求。
发明内容
本申请实施例提供一种显示时间的方法及电子设备,用以实现在电子设备处于息屏显示状态下显示数字时钟时,为用户提供更丰富的显示效果。
第一方面,本申请实施例提供一种显示时间的方法,应用于具有显示屏的电子设备,该方法包括:电子设备获取第一图片、第二图片和第三图片,其中第一图片包括目标控件的第一部分,第二图片包括目标控件的第二部分,第三图片包括数字时钟;电子设备依次将第一图片、第三图片和第二图片叠加,生成待显示画面,其中,在待显示画面中,目标控件的第一部分和第二部分组成目标控件,目标控件与数字时钟的至少一个数字部分重叠;在显示屏处于息屏显示状态下,显示待显示画面。
基于该方案,电子设备依次将包括目标控件的第一部分的第一图片、包括数字时钟的第三图片和包括目标控件的第二部分的第二图片叠加,生成待显示画面,在生成待显示画面中,目标控件的第一部分和第二部分组成目标控件,可形成目标控件的第一部分显示在数字的后方,目标控件的第二部分显示在数字的前方的相互穿插的视觉效果,相较于数字与整个目标控件形成单一的前后关系显示效果来说,该方案可实现在电子设备处于息屏显示状态下显示数字时钟时,为用户提供更丰富的显示效果。
在一种可能的设计中,数字时钟包括用于表示小时的数字和用于表示分钟的数字,且 用于表示小时的数字和用于表示分钟的数字位于不同行;用于表示小时的数字包括位于十位的第一数字和位于个位的第二数字;待显示画面包括的目标控件与第一数字部分重叠。
在该设计中,第一数字为表示小时的位于十位上的数字,其可能的取值为0、1、2,在数字时钟计时的过程中,第一数字在24小时的计时时间内变化3次,相较于第二数字、第三数字、第四数字的变化频率低,可以节省功耗。
在一种可能的设计中,电子设备获取第一图片和第三图片,可通过如下方式实现:分别根据第一图片和第三图片的文件名,调用第一图片和第三图片;其中,第一图片的文件名为:数字时钟的布局类型、数字时钟上与目标控件部分重叠的数字的取值、第一图片与数字时钟的位置关系,第三图片的文件名为:数字时钟的时钟布局类型、数字时钟上与所述目标控件部分重叠的数字的取值、第三图片与数字时钟的位置关系。
示例的,以数字时钟的布局类型为单时钟布局,数字时钟上与目标控件部分重叠的数字的取值为0例,第一图片与数字时钟的位置关系为第一图片为数字时钟的背景,第一图片与数字时钟的位置关系为第一图片为数字时钟的前景,在该示例中,第一图片的文件名为:single_digit0_bg.png,第二图片的文件名为:single_digit0_fg.png。
在一种可能的设计中,目标控件的第一部分的尺寸小于第一图片的尺寸,目标控件的第二部分的尺寸小于第二图片的尺寸。在该设计中,目标控件并未填满叠加后的整张图片,也就是说,待显示画面存在透明镂空区域,这样在息屏显示状态下显示待显示画面时,只需要目标控件所在的区域的像素点发光,可防止烧屏。
在一种可能的设计中,数字时钟的布局可以为单时钟布局,也可以为双时钟布局。
在一种可能的设计中,数字时钟包括的每个数字对应三组图片资源,三组图片资源包括单时钟布局对应的一组图片资源和双时钟布局中两个时钟分别对应的两组图片资源,每组图片资源包括作为背景层的第一图片和作为前景层的第二图片。
在一种可能的设计中,第一图片、第二图片和第三图片的图片格式均为图像文件存储png格式。将第一图片、第二图片和第三图片叠加所生成的待显示画面中,除了数字时钟上的数字和目标控件之外的其它区域都是透明镂空效果。
在一种可能的设计中,目标控件可以为一个图案,包括但不限于鸟的图案,鱼的图片,扇子的图案等。目标控件也可以包括至少两个图案,例如目标控件由两个鱼组成,一个鱼作为目标控件的第一部分与数字时钟上的第一数字叠加,成为第一数字的背景,另一个鱼作为目标控件的第二部分与第一数字叠加,成为第一数字的前景,这样生成的待显示画面中包括由两个鱼组成的目标控件。
在一种可能的设计中,在显示屏处于息屏显示状态下,还可以显示第一信息;其中,第一信息的颜色可设置为与数字时钟的数字颜色一致。示例的,第一信息可以包括但不限于地点、图标、日期、推送消息等信息,第一信息的颜色设置为与数字时钟的数字颜色一致,有助于提升用户体验。
在一种可能的设计中,该方法还可以包括:电子设备检测到对目标控件上的点击操作,响应于点击操作,播放数字时钟的时间。
第二方面,本申请实施例提供一种电子设备,包括处理器、存储器、显示屏;所述显示屏,用于显示用户界面;所述存储器用于存储一个或多个计算机程序,所述计算机程序被所述处理器执行时,使得所述电子设备执行:获取第一图片、第二图片和第三图片,其中第一图片包括目标控件的第一部分,第二图片包括目标控件的第二部分,第三图片包括 数字时钟;依次将第一图片、第三图片和第二图片叠加,生成待显示画面,其中,在待显示画面中,目标控件的第一部分和第二部分组成目标控件,目标控件与数字时钟的至少一个数字部分重叠;在显示屏处于息屏显示状态下,显示待显示画面。
在一种可能的设计中,数字时钟包括用于表示小时的数字和用于表示分钟的数字,且用于表示小时的数字和用于表示分钟的数字位于不同行;用于表示小时的数字包括位于十位的第一数字和位于个位的第二数字;待显示画面包括的目标控件与第一数字部分重叠。
在一种可能的设计中,所述计算机程序被所述处理器执行时,使得所述电子设备还执行:分别根据第一图片和第三图片的文件名,调用第一图片和第三图片;其中,第一图片的文件名为:数字时钟的布局类型、与目标控件部分重叠的数字的取值、第一图片与数字时钟的位置关系,第三图片的文件名为:数字时钟的时钟布局类型、与目标控件部分重叠的数字的取值、第三图片与数字时钟的位置关系。
在一种可能的设计中,目标控件的第一部分的尺寸小于第一图片的尺寸,目标控件的第二部分的尺寸小于第二图片的尺寸。
在一种可能的设计中,数字时钟的布局为单时钟布局或双时钟布局。
在一种可能的设计中,数字时钟包括的每个数字对应三组图片资源,三组图片资源包括单时钟布局对应的一组图片资源和双时钟布局中两个时钟分别对应的两组图片资源,每组图片资源包括作为背景层的第一图片和作为前景层的第二图片。
在一种可能的设计中,第一图片、第二图片和第三图片的图片格式均为图像文件存储png格式。
在一种可能的设计中,目标控件为鸟的图案。
在一种可能的设计中,目标控件包括至少两个图案。
在一种可能的设计中,所述计算机程序被所述处理器执行时,使得所述电子设备还执行:在显示屏处于息屏显示状态下,显示第一信息;其中,第一信息的颜色可设置为与数字时钟的数字颜色一致。
在一种可能的设计中,所述计算机程序被所述处理器执行时,使得所述电子设备还执行:检测到对目标控件上的点击操作;响应于点击操作,播放数字时钟的时间。
第三方面,本申请实施例还提供一种电子设备,该电子设备包括执行上述任一方面的任意一种可能的设计的方法的模块/单元。这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第四方面,本申请实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行上述任一方面的任意一种可能的设计的方法。
第五方面,本申请实施例还提供一种包含计算机程序产品,当所述计算机程序产品在终端上运行时,使得所述电子设备执行上述任一方面的任意一种可能的设计的方法。
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
附图说明
图1为本申请实施例提供的一种电子设备的硬件结构示意图;
图2为本申请实施例提供的一种电子设备的软件结构框图;
图3为本申请实施例提供的一种用户界面示意图;
图4a本申请实施例提供的一种息屏显示界面示意图;
图4b本申请实施例提供的另一种息屏显示界面示意图;
图4c本申请实施例提供的又一种息屏显示界面示意图;
图5本申请实施例提供的一种息屏显示的过程示意图;
图6本申请实施例提供的单时钟布局示意图;
图7本申请实施例提供的双时钟布局示意图;
图8a本申请实施例提供的单时钟图片资源规格示意图;
图8b本申请实施例提供的双时钟图片资源规格示意图;
图9本申请实施例提供的另一种息屏显示的过程示意图;
图10为本申请实施例提供的一种息屏显示的方法流程示意图;
图11为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
为了便于理解,示例的给出了部分与本申请实施例相关概念的说明以供参考。如下所示:
息屏显示(always on display),电子设备在息屏显示状态下,可以通过单独点亮部分像素点以显示时钟、日期和天气情况等内容。
息屏显示状态是指屏幕熄灭的状态。
息屏显示区域,为电子设备处于息屏显示模式时,显示面板上用于显示信息的区域,电子设备处于锁屏状态,显示面板的部分子像素可以处于开启状态(也即是点亮显示面板的部分子像素),其他子像素处于关闭状态,使显示面板的部分区域保持常亮状态,其余区域均处于黑屏状态,该保持常亮的区域可以称为息屏显示区域。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
本申请公开的各个实施例可以应用于设置有显示屏的电子设备中,该电子设备具有息屏显示功能。在本申请一些实施例中,电子设备可以是包含诸如个人数字助理和/或音乐播放器等功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2021082340-appb-000001
Figure PCTCN2021082340-appb-000002
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备也可以是具有触敏表面(例如触控面板)的台式计算机。
图1示例性示出了一种电子设备100的结构示意图。
应理解,图示电子设备100仅是一个范例,并且电子设备100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
如图1所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器 121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
下面结合图1对电子设备100的各个部件进行具体的介绍:
处理器110可以包括一个或多个处理单元,例如,处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用,从而可避免重复存取,可减少处理器110的等待时间,因而可提高系统的效率。
处理器110可以运行本申请实施例提供的息屏显示的方法。当处理器110集成不同的器件,比如集成CPU和GPU时,CPU和GPU可以配合执行本申请实施例提供的操作提示的方法,比如操作提示的方法中部分算法由CPU执行,另一部分算法由GPU执行,以得到较快的处理效率。
在一些实施例中,处理器110可以包括一个或多个接口。比如,接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线 1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED), 有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
在本申请实施例中,显示屏194可以是一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的拼接的显示屏。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一 些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。例如,可以在电子设备100的正面(显示屏194的下方)配置指纹传感器,或者,在电子设备100的背面(后置摄像头的下方)配置指纹传感器。另外,也可以通过在触摸屏中配置指纹传感器来实现指纹识别功能,即指纹传感器可以与触摸屏集成在一起来实现电子设备100的指纹识别功能。在这种情况下,该指纹传感器可以配置在触摸屏中,可以是触摸屏的一部分,也可以是以其他方式配置在触摸屏中。另外,该指纹传感器还可以被实现为全面板指纹传感器,因此,可以把触摸屏看成是任何位置可都可以进行指纹采集的一个面板。在一些实施例中,该指纹传感器可以对采集到的指纹进行处理(例如指纹是否验证通过)发送给处理器110,由处理器110根据指纹处理结果做出相应的处理。在另一些实施例中,还指纹传感器还可以将采集到的指纹发送给处理器110,以便处理器110对该指纹进行处理(例如指纹验证等)。本申请实施例中的指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳 机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
尽管图1中未示出,电子设备100还可以包括蓝牙装置、定位装置、闪光灯、微型投影装置、近场通信(near field communication,NFC)装置等,在此不予赘述。
以下实施例均可以在具有上述硬件结构的电子设备100(例如手机、平板电脑等)中实现。上述图1对电子设备100的硬件结构进行了描述,以下实施例以分层架构的安卓(Android)系统为例,示例性说明电子设备100的软件结构。
图2是本发明实施例的电子设备100的软件结构框图。
如图2所示,电子设备的软件结构采用分层式架构,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。如图2所示,应用程序包可以包括电话、相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以 包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面介绍电子设备100提供的一些示例性用户界面(user interface,UI)。本申请的说明书和权利要求书及附图中的术语“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、小组件(widget)等可视的界面元素。
图3中示例示出了电子设备100的显示屏194上显示的一个用户界面300。
如图3所示,该用户界面300为电子设备的息屏显示界面。其中,用户界面300可包括数字时钟301,该数字时钟301可以包括时间数字,数字时钟布局样式可以为横排显示,即用于表示小时的数字与用于表示分钟的数字在同一排(或行)显示,应理解,图3并不 对本申请实施例中的数字时钟的布局样式进行限定,本申请的数字时钟布局样式也可以为其它样式,例如双排显示,如图4a、或图4b、或图4c所示,即用于表示小时的数字与用于表示分钟的数字不在同一排(或行)显示,可以是用于表示小时的数字在第一排(或行),用于表示分钟的数字在第二排(或行)显示,也可以是用于表示分钟的数字在第一排(或行),用于表示小时的数字在第二排(或行)显示。
在其它一些实施例中,该用户界面300还可以包括日期302和天气小组件(widget)303等,还可以包括各种应用的图标304,例如,微信图标、电话图标、短信图标和剩余电量等。在另一些实施例中,用户界面300还可以包括推送消息305,例如微信消息提醒。
可以理解的是,图3仅仅示例性示出了电子设备100上的息屏显示界面,不构成对本申请实施例的限定。
电子设备在息屏显示场景下,显示数字时钟时,将鸟的图案作为数字时钟的背景或前景,形成的视觉效果主要包括两种:一种如图4a所示,时间叠加在鸟的图案之上,形成时间在前、鸟的图案在后的视觉效果;另一种如图4b所示,鸟的图案叠加在时间之上,形成鸟的图案在前、时间在后的视觉效果,这两种视觉效果均比较单一,并不能满足用户对更丰富的显示效果的追求。
为此,本申请提供一种显示时间的方法,该方法适用于具有显示屏的电子设备,该电子设备具有息屏显示功能。在该方法中,电子设备获取第一图片、第二图片和第三图片,其中,第一图片包括目标控件的第一部分,第二图片包括目标控件的第二部分,第三图片包括数字时钟,依次将第一图片、第三图片和第二图片叠加,生成待显示画面,在该待显示画面中目标控件的第一部分成为数字时钟的背景(background,bg),目标控件的第二部分成为数字时钟的前景(foreground,fg),作为背景的第一部分与作为前景的第二部分组成一个完整的目标控件,该目标控件与数字时钟的至少一个数字部分重叠,例如,目标控件为一只完整的鸟的图案,如图4c所示,第一图片包括目标控件的第一部分,即鸟的尾部,第二图片包括数字时钟,第三图片包括目标控件的第二部分,即鸟的前身部分,这三个图片叠加之后得到的待显示画面中,鸟的尾部作为数字时钟包括的数字“0”的背景,鸟的前身部分作为数字“0”的前景,形成目标控件的第一部分在数字“0”的前方,目标控件的第二部分在数字“0”的后方的相互穿插的视觉效果,相较于数字“0”与整个目标控件形成单一的前后关系显示效果来说,本申请中显示时间的方法可实现在电子设备处于息屏显示状态下显示数字时钟时,为用户提供更丰富的显示效果。
应理解,本申请实施例提供的显示时间的方法,不仅适用于数字时钟,也适用于模拟时钟,以下实施例中仅以数字时钟为例介绍。
以下将结合附图,对本申请实施例提供的显示时间的方法进行详细介绍。
本申请实施例中,数字时钟可以为24小时制,也可以为12小时制,为便于描述,以下实施例中以数字时钟为24小时制为例进行介绍。
示例的,如图5所示,数字时钟上的时间为08时08分,数字时钟上的时间包括用于表示小时的数字和用于表示分钟的数字,用于表示小时的数字和所述用于表示分钟的数字位于不同行。其中,用于表示小时的数字包括位于十位的第一数字和位于个位的第二数字,第一数字可以取0、1、2等数值,第二数字可以取0、1、2……9等数值。用于表示分钟的数字包括位于十位的第三数字和位于个位的第四数字,第三数字可以取0、1、2……6等数值,第四数字可以取0、1、2……9等数值。
目标控件可以与数字时钟上的第一数字、第二数字、第三数字和第四数字中的任一个或多个数字叠加,得到待显示画面,待显示画面中的目标控件与任一个或多个数字叠加以形成相互穿插的视觉效果。以下实施例中以目标控件与数字时钟上的一个数字进行叠加,得到待显示画面为例进行说明。
以目标控件为鸟的图案为例,可以将鸟的图案与数字时钟上的第一数字进行叠加,得到待显示画面,在待显示画面中鸟的图案与第一数字部分重叠,形成相互穿插的效果。其中,第一数字为表示小时的位于十位上的数字,其可能的取值为0、1、2,在数字时钟计时的过程中,第一数字在24小时的计时时间内变化3次,较第二数字、第三数字、第四数字的变化频率低,这样相较于将鸟的图案与其它数字(如第二数字、第三数字、第四数字)叠加显示来说,鸟的图案与第一数字叠加显示可以节省功耗。
下面以目标控件(鸟的图案)与数字时钟的第一数字叠加为例,介绍本申请实施例的显示时间的方法。
在一个示例中,第一数字取值为“0”,目标控件的一部分在前景层,另一部分在背景层,如图5所示,前景层的图片501中包括鸟的第一部分,数字层的图片502包括数字“0”,背景层的图片503中包括鸟的第二部分,将图片501、图片502、图片503叠加之后得到图片504,图片504中鸟的第一部分与鸟的第二部分组成一个完整的鸟的图案,在图片504中,目标控件(鸟的图案)与数字“0”形成相互穿插的视觉效果,即鸟的第一部分在数字“0”的前方,鸟的第二部分在数字“0”的后方的视觉效果。
在另一个示例中,第一数字取值为“1”,目标控件的一部分在前景层,另一部分在背景层,如图5所示,前景层的图片511中包括鸟的第一部分,数字层的图片512包括数字“1”,背景层的图片513中包括鸟的第二部分,将图片511、图片512、图片513叠加之后得到图片514,图片514中鸟的第一部分与鸟的第二部分组成一个完整的鸟的图案,在图片514中,目标控件(鸟的图案)与数字“1”形成相互穿插的视觉效果,即鸟的第一部分在数字“1”的前方,鸟的第二部分在数字“1”的后方的视觉效果。
在又一个示例中,第一数字取值为“2”,目标控件全部在前景层,如图5所示,前景层的图片521中包括整只鸟,数字层的图片522包括数字“2”,背景层的图片523中无图案,将图片521、图片522、图片523叠加之后得到图片524,在图片524中,目标控件(鸟的图案)完全在数字“2”前方的视觉效果。
以上几个示例中,数字时钟的第一数字的取值不同,可随着数字“0”、“1”、“2”的形状不同,将目标控件作不同的分割,各个不同的取值分别对应的前景层的图片中目标控件的第一部分不相同,各个取值分别对应的背景层的图片中目标控件的第二部分也不相同,所以各个取值分别对应的前景层、数字层、背景层的图片叠加后,得到的图片504、图片514、图片524中,目标控件(鸟的图案)与第一数字叠加后的视觉效果也不相同,这样可以灵活的将鸟的图案与数字的形状结合,随着数字时钟的时间变化,显示不同的叠加效果,从而为用户更丰富的视觉效果。
本申请实施例中,背景层的图片、数字层的图片和前景层的图片中任一图片格式均为图像文件存储(portable network graphic,png)格式,这样背景层的图片和前景层的图片中除了鸟的图案之外的区域都是透明镂空效果,数字层的图片中除了数字之外的区域都是透明镂空效果,这三层图片叠加之后不会影响到数字时钟上的数字的显示,也不会影响到鸟的图案的显示。而且待显示画面上只需要数字时钟和目标控件(鸟的图案)所在区域的 像素点发光,可以节省功耗。
以上示例仅以第一数字与鸟的图案叠加为例介绍息屏显示的视觉效果,第二数字、第三数字、第四数字与目标控件叠加的显示时间的方法可以参考上述示例的相关描述,此处不再赘述。
本申请实施例中,数字时钟的布局可以为如图6所示的单时钟布局,如图6所示,息屏显示界面上显示有一个数字时钟601,示例的,电子设备可以获取当前所在地理位置,根据当前所在地理位置的时区设置为数字时钟601的时间。在其他一些实施例中,数字时钟的布局也可以为如图7所示的双时钟布局,双时钟可以显示两个不同位置的时间,例如,其中一个数字时钟可以为根据家所在位置(例如户籍所在地、常用居住地等)对应的时区设置时间,另一个数字时钟可以根据电子设备当前所在位置(例如出差地)对应的时区设置时间,如图7所示,息屏显示界面上显示有数字时钟701和数字时钟703,示例的,数字时钟701对应的时间为中国呼和浩特的当地时间和日期,数字时钟701下方显示有房子图标(如虚线框702中所示),数字时钟701的时间为家所在位置的时区的时间。数字时钟703对应的时间为阿姆斯特丹的当地时间和日期,数字时钟703下方显示有定位图标(如虚线框704中所示),数字时钟703的时间为电子设备当前所在位置的时区的时间。
以目标控件与第一数字叠加显示为例,第一数字可以取值为0、1、2,第一数字的每个取值可以对应三组图片资源,包括一组单时钟图片资源和两组双时钟图片资源。一组图片资源文件名称的可命名为:时钟类型_数字n_背景.png和时钟类型_数字n_前景.png,其中,单时钟以single为前缀,双时钟以dual为前缀。示例的,若第一数字的取值为“0”,则数字n可表示为数字(digit)0;若第一数字的取值为“1”,则数字n可表示为digit1;若第一数字的取值为“2”,则数字n可表示为digit2。
以第一数字的取值为“2”为例,其对应的一组单时钟图片资源的文件名称为:single_digit2_bg.png和single_digit2_fg.png,其对应的两组双时钟图片资源的文件名称为:dual1_digit2_bg.png、dual1_digit2_fg.png、dual2_digit2_bg.png、dual2_digit2_fg.png。
本申请实施例中,图片资源的图片规格可以设置为固定大小,不随时间数字的变化而变化。示例的,以单时钟布局为例,单时钟图片资源的图片规格对应的宽可以设置为与显示屏的宽一致,如图8a所示的宽为360dp,高为248dp。以双时钟布局为例,每个双时钟图片资源(图片820和图片830)的图片规格可以如图8b所示的宽为180dp,高为248dp。
在该示例中,每个图片资源对应的图片中,目标控件的尺寸小于图片的尺寸,比如图8a所示的图片810为例,图片的尺寸为宽360dp,高248dp,该图片中鸟的图案811并未填满整张图片,即该图片810存在透明镂空区域,这样在息屏显示界面上显示图片810时,只需要鸟的图案811所在的区域的像素点发光,可防止烧屏。
此外,将图片规格设置的较大,可以支持多种形状和尺寸的目标控件的显示,在为数字时钟设计叠加的目标控件时,不会局限于一种目标控件的大小,导致更换成其它尺寸较大的目标控件时无法显示。
下面对息屏显示(AOD)布局进行介绍。
示例的,AOD布局如theme.xml文件所示:
Figure PCTCN2021082340-appb-000003
Figure PCTCN2021082340-appb-000004
在AOD布局中,数据时钟的布局样式可以为如图3所示的横排显示样式,也可以为如图4a、图4b、图4c等所示的双排显示样式。
在一些实施例中,前景图片位置的取值可以表示前景层的图片中的目标控件的一部分在数字时钟上的显示位置,背景图片位置的取值可以表示背景层的图片中的目标控件的另一部分在数字时钟上的显示位置,前景图片位置和背景图片位置的可选值为0,1,2,其中,当前景图片位置和背景图片位置的取值为“0”时,表示随着时间发生变化,对应的前景层的图片和背景层的图片不发生变化,在设计目标控件的显示效果时,需要避开数字时钟的显示区域,以保证不对数字进行遮挡。
当前景图片位置和背景图片位置的取值为“1”时,在第一数字的位置显示目标控件,由于24小时制的数字时钟的第一数字的取值可以为0、1、2,每个取值可以对应三组图片资源。
当第一数字的取值为“0”时,对应的三组图片资源的命名为:
single_digit0_fg.png,single_digit0_bg.png;
dual1_digit0_fg.png,dual1_digit0_bg.png;
dual2_digit0_fg.png,dual2_digit0_bg.png。
当第一数字的取值为“1”时,对应的三组图片资源的命名为:
single_digit1_fg.png,single_digit1_bg.png;
dual1_digit1_fg.png,dual1_digit1_bg.png;
dual2_digit1_fg.png,dual2_digit1_bg.png。
当第一数字的取值为“2”时,对应的三组图片资源的命名为:
single_digit2_fg.png,single_digit2_bg.png;
dual1_digit2_fg.png,dual1_digit2_bg.png;
dual2_digit2_fg.png,dual2_digit2_bg.png。
上述图片资源的名称必须匹配不可更改,当分别在第一数字的位置显示0、1、2时,同时在第一数字的位置显示与第一数字的取值对应的前景层的图片和背景层的图片,从而可以根据第一数字的取值变化,显示目标控件与第一数字叠加后的不同视觉效果。
当前景图片位置和背景图片位置的取值为“2”时,在第二数字的位置显示目标控件,由于24小时制的数字时钟的第二数字的取值可以为0、1、2、……9,每个取值可以对应三组图片资源。
当第二数字的取值为“0”时,对应的三组图片资源的命名为:
single_digit0_fg.png,single_digit0_bg.png;
dual1_digit0_fg.png,dual1_digit0_bg.png;
dual2_digit0_fg.png,dual2_digit0_bg.png。
当第二数字的取值可以“1”时,对应的三组图片资源的命名为:
single_digit1_fg.png,single_digit1_bg.png;
dual1_digit1_fg.png,dual1_digit1_bg.png;
dual2_digit1_fg.png,dual2_digit1_bg.png。
……
当第二数字的取值可以“9”时,对应的三组图片资源的命名为:
single_digit9_fg.png,single_digit9_bg.png;
dual1_digit9_fg.png,dual1_digit9_bg.png;
dual2_digit9_fg.png,dual2_digit9_bg.png。
上述图片资源的名称必须匹配不可更改,当分别在第二数字的位置显示0、1、2、……9时,同时在第二数字的位置显示与第二数字的取值对应的前景图和背景图。
在其他一些实施例中,还可以在数字时钟的表示分钟的数字上显示目标控件,这时前景图片位置和背景图片位置的还可以选值为3、4。
当前景图片位置和背景图片位置的取值为“3”时,在第三数字的位置显示目标控件,由于24小时制的数字时钟的第三数字的取值可以为0、1、2……6,每个取值可以对应三组图片资源。
当第三数字的取值为“0”时,对应的三组图片资源的命名为:
single_digit0_fg.png,single_digit0_bg.png;
dual1_digit0_fg.png,dual1_digit0_bg.png;
dual2_digit0_fg.png,dual2_digit0_bg.png。
……
当第三数字的取值可以“6”时,对应的三组图片资源的命名为:
single_digit6_fg.png,single_digit6_bg.png;
dual1_digit6_fg.png,dual1_digit6_bg.png;
dual2_digit6_fg.png,dual2_digit6_bg.png。
上述图片资源的名称必须匹配不可更改,当分别在第三数字的位置显示0、1、2、……9时,同时在第三数字的位置显示与第三数字的取值对应的前景图和背景图。
当前景图片位置和背景图片位置的取值为“4”时,在第四数字的位置显示目标控件,由于24小时制的数字时钟的第三数字的取值可以为0、1、2……9,每个取值可以对应三组图片资源,具体的图片资源可参见当前景图片位置和背景图片位置的取值为“2”时的第二数字的每个取值对应的图片资源的命名,此处不再赘述。
在AOD布局中,数字时钟的数字是图片格式,不能对数字的颜色进行更改。当息屏显示界面上除了显示数字时钟之外,还显示其他信息时,其它信息与数字的颜色可能不同,本申请实施例中可以设置更改其他信息的颜色,一般可设置默认颜色为白色,当需要修改其他信息的颜色时,通过修改theme.xml文件中item fondcolor的取值实现。
在一个示例中,以单时钟布局为例,如图6所示,数字时钟601下方显示有日期(如公历日期、农历日期等)、各种应用图标、以及电池电量等信息(如虚线框602所标记的信息)的颜色是可以设置的,这样可以通过更改虚线框602所标记的信息的颜色,使得息屏显示界面显示的数字时钟与其它信息的颜色一致,有助于提升用户体验。
在另一个示例中,以双时钟布局为例,如图7所示,数字时钟701下方显示有地点、 图标、日期(如公历日期、星期等)等信息(如虚线框702所标记的信息)的颜色是可以设置的,数字时钟703下方显示有地点、图标、日期(如公历日期、星期等)等信息(如虚线框704所标记的信息)的颜色是可以设置的,这样可以通过更改虚线框702、虚线框704所标记的信息的颜色,使得息屏显示界面显示的数字时钟与其它信息的颜色一致,有助于提升用户体验。
本申请实施例中,目标控件可以为上述示例中的鸟的图案,也可以为其它对象的图案,包括但不限于花的图案,月亮的图案,扇子的图案等,此处不一一列举。
上述实施例中,以目标控件包括一个对象(如鸟)的图案,目标控件与数字时钟的一个数字叠加显示为例进行介绍的。
在其它一些实施例中,目标控件可以与数字时钟的多个数字叠加显示形成相互穿插的视觉效果,应理解,目标控件可以为一个对象的图案,也可以包括多个对象的图案。
下面以目标控件包括两个对象的图案为例,这两个对象分别不同的金鱼的图案,以目标控件与两个数字叠加显示为例,介绍本申请的显示时间的方法的另一种可能的实现方式。
参见图9,目标控件包括图片901中的金鱼01和图片903中的金鱼02,图片902包括数字时钟,将图片901、图片902、图片903叠加,图片901中的金鱼01作为数字时钟的两个数字(第一数字和第三数字)的背景层,图片903中的金鱼02作为数字时钟的两个数字(第一数字和第三数字)的前景层,之后,得到待显示画面904,在待显示画面904中,金鱼01和金鱼02组成目标控件,可形成金鱼01在第一数字(值为0)和第三数字(值为0)的后方(即背景),金鱼02在第一数字(值为0)和第三数字(值为0)的前方(即背景)的相互穿插的视觉效果。
在另一些实施例中,图片901中的金鱼01和图片903中的金鱼02也可以仅与数字时钟的一个数字叠加显示形成相互穿插的视觉效果,也可以与数字时钟的三个数字叠加显示形成相互穿插的视觉效果,也可以与数字时钟的四个数字叠加显示形成相互穿插的视觉效果,具体实现方式可参见图9的示例,此处不再赘述。
在图9所示的示例中,AOD布局的相关内容可参见前述实施例中AOD布局的相关内容,此处不再赘述。
本申请实施例中,息屏显示界面上显示的待显示画面可以一直显示在显示屏的同一位置,也可以间隔一段时间更换位置进行显示,例如,每隔预设时长移动第一数量的像素点显示待显示画面,示例的,可以每个1分钟移动几个像素点显示待显示画面。其中,预设时长设置的越长,第一数量的数值越大。这样可以使电子设备的每隔一段时间在息屏显示状态下显示待显示画面的显示位置发生变化,从而使显示屏上每隔一段时间显示待显示画面时点亮的像素点存在不同,相比于电子设备在息屏显示状态下显示待显示画面时一直点亮相同的像素点来说,可以降低像素点发生损坏的风险,进而降低电子设备出现烧屏现象的风险。
在该实施例中,在息屏显示状态下显示待显示画面时,可以每隔一段时间在不重叠的两个区域分别显示待显示画面,这样不重叠的两个区域显示待显示图案时点亮的像素点完全不同,可以进一步降低显示屏发生烧屏的风险。
结合上述实施例及附图,本申请实施例提供一种息屏显示的方法,该方法可以在具有 图1所示的硬件结构的电子设备中实现。如图10所示,本申请实施例中的息屏显示方法可以包括以下步骤:
步骤1001,获取第一图片、第二图片和第三图片,其中第一图片包括目标控件的第一部分,第二图片包括目标控件的第二部分,第三图片包括数字时钟。该数字时钟的布局可以为单时钟布局,也可以为双时钟布局。
示例的,以图9为例,第一图片可以为图片901,第二图片可以为图片903,第三图片可以为图片902,目标控件为鸟的图案。
步骤1002,依次将第一图片、第三图片和第二图片叠加,生成待显示画面,其中,在待显示画面中,目标控件的第一部分和第二部分组成目标控件,目标控件与数字时钟的至少一个数字部分重叠。
示例的,以图5为例,图片901、图片903、图片902叠加之后得到如图片904所示的待显示画面。
步骤1003,在显示屏处于息屏显示状态下,显示待显示画面。
基于该方法,电子设备依次将包括目标控件的第一部分的第一图片、包括数字时钟的第三图片和包括目标控件的第二部分的第二图片叠加,生成待显示画面,在生成待显示画面中,目标控件的第一部分和第二部分组成目标控件,可形成目标控件的第一部分显示在数字的后方,目标控件的第二部分显示在数字的前方的相互穿插的视觉效果,相较于数字与整个目标控件形成单一的前后关系显示效果来说,该方案可实现在电子设备处于息屏显示状态下显示数字时钟时,为用户提供更丰富的显示效果。
在一种可能的实现方式中,数字时钟包括用于表示小时的数字和用于表示分钟的数字,且用于表示小时的数字和用于表示分钟的数字位于不同行。在另一种实现方式中,数字时钟包括的用于表示小时的数字和用于表示分钟的数字也可以位于同一行。
其中,用于表示小时的数字包括位于十位的第一数字和位于个位的第二数字,待显示画面包括的目标控件与第一数字部分重叠。第一数字为表示小时的位于十位上的数字,其可能的取值为0、1、2,在数字时钟计时的过程中,第一数字在24小时的计时时间内变化3次,相较于第二数字、第三数字、第四数字的变化频率低,可以节省功耗。
在一种可能的设计中,电子设备获取第一图片和第三图片,可通过如下方式实现:分别根据第一图片和第三图片的文件名,调用第一图片和第三图片;其中,第一图片的文件名为:数字时钟的布局类型、数字时钟上与目标控件部分重叠的数字的取值、第一图片与数字时钟的位置关系,第三图片的文件名为:数字时钟的时钟布局类型、数字时钟上与所述目标控件部分重叠的数字的取值、第三图片与数字时钟的位置关系。
示例的,以数字时钟的布局类型为单时钟布局,数字时钟上与目标控件部分重叠的数字的取值为0例,第一图片与数字时钟的位置关系为第一图片为数字时钟的背景,第一图片与数字时钟的位置关系为第一图片为数字时钟的前景,在该示例中,第一图片的文件名为:single_digit0_bg.png,第二图片的文件名为:single_digit0_fg.png。
在一种可能的设计中,目标控件的第一部分的尺寸小于第一图片的尺寸,目标控件的第二部分的尺寸小于第二图片的尺寸。在该设计中,目标控件并未填满叠加后的整张图片,也就是说,待显示画面存在透明镂空区域,这样在息屏显示状态下显示待显示画面时,只需要目标控件所在的区域的像素点发光,可防止烧屏。
在一种可能的设计中,数字时钟包括的每个数字对应三组图片资源,三组图片资源包 括单时钟布局对应的一组图片资源和双时钟布局中两个时钟分别对应的两组图片资源,每组图片资源包括作为背景层的第一图片和作为前景层的第二图片。
在一种可能的设计中,第一图片、第二图片和第三图片的图片格式均为图像文件存储png格式。将第一图片、第二图片和第三图片叠加所生成的待显示画面中,除了数字时钟上的数字和目标控件之外的其它区域都是透明镂空效果。
在一种可能的设计中,目标控件可以为一个图案,包括但不限于鸟的图案,鱼的图片,扇子的图案等。目标控件也可以包括至少两个图案,例如目标控件由两个鱼组成,一个鱼作为目标控件的第一部分与数字时钟上的第一数字叠加,成为第一数字的背景,另一个鱼作为目标控件的第二部分与第一数字叠加,成为第一数字的前景,这样生成的待显示画面中包括由两个鱼组成的目标控件。
在一种可能的设计中,在显示屏处于息屏显示状态下,还可以显示第一信息,其中,第一信息的颜色可设置为与数字时钟的数字颜色一致。示例的,第一信息可以包括但不限于地点、图标、日期、推送消息等信息,例如图6中的虚线框602所标记的信息,又例如图7中虚线框702和虚线框704所标记的信息,第一信息的颜色设置为与数字时钟的数字颜色一致,有助于提升用户体验。
在一种可能的设计中,该方法还可以包括:电子设备检测到对目标控件上的点击操作,响应于点击操作,播放数字时钟的时间。
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
采用硬件实现时,该电子设备的硬件实现可参考图11及其相关描述。
参见图11,所述电子设备100,包括:触摸屏1101,其中,所述触摸屏1101包括触控面板1107和显示屏1108;一个或多个处理器1102;存储器1103;一个或多个应用程序(未示出);以及一个或多个计算机程序1104,传感器1105、上述各器件可以通过一个或多个通信总线1106连接。其中该一个或多个计算机程序1104被存储在上述存储器1103中并被配置为被该一个或多个处理器1102执行,该一个或多个计算机程序1104包括指令,上述指令可以用于执行上述任一实施例中的方法。
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的显示时间的方法。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的显示时间的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的翻译方法。
其中,本申请实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用 于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (21)

  1. 一种显示时间的方法,应用于具有显示屏的电子设备,其特征在于,所述方法包括:
    获取第一图片、第二图片和第三图片,其中所述第一图片包括目标控件的第一部分,所述第二图片包括所述目标控件的第二部分,所述第三图片包括数字时钟;
    依次将所述第一图片、所述第三图片和所述第二图片叠加,生成待显示画面,其中,在所述待显示画面中,所述目标控件的第一部分和第二部分组成所述目标控件,所述目标控件与所述数字时钟的至少一个数字部分重叠;
    在所述显示屏处于息屏显示状态下,显示所述待显示画面。
  2. 如权利要求1所述的方法,其特征在于,所述数字时钟包括用于表示小时的数字和用于表示分钟的数字,且所述用于表示小时的数字和所述用于表示分钟的数字位于不同行;所述用于表示小时的数字包括位于十位的第一数字和位于个位的第二数字;所述待显示画面包括的所述目标控件与所述第一数字部分重叠。
  3. 如权利要求1或2所述的方法,其特征在于,获取第一图片和第三图片,包括:
    分别根据所述第一图片和所述第三图片的文件名,调用所述第一图片和所述第三图片;
    其中,所述第一图片的文件名为:所述数字时钟的布局类型、数字时钟上与所述目标控件部分重叠的数字的取值、所述第一图片与所述数字时钟的位置关系,所述第三图片的文件名为:所述数字时钟的时钟布局类型、与所述目标控件部分重叠的数字的取值、所述第三图片与所述数字时钟的位置关系。
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述目标控件的第一部分的尺寸小于所述第一图片的尺寸,所述目标控件的第二部分的尺寸小于所述第二图片的尺寸。
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述数字时钟的布局为单时钟布局或双时钟布局。
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述数字时钟包括的每个数字对应三组图片资源,所述三组图片资源包括单时钟布局对应的一组图片资源和双时钟布局中两个时钟分别对应的两组图片资源,每组图片资源包括作为背景层的第一图片和作为前景层的第二图片。
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述第一图片、第二图片和第三图片的图片格式均为图像文件存储png格式。
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述目标控件为鸟的图案。
  9. 如权利要求1-8任一项所述的方法,其特征在于,还包括:
    在所述显示屏处于息屏显示状态下,显示第一信息;其中,所述第一信息的颜色可设置为与所述数字时钟的数字颜色一致。
  10. 如权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:
    检测到对所述目标控件上的点击操作;
    响应于所述点击操作,播放所述数字时钟的时间。
  11. 一种电子设备,其特征在于,包括处理器、存储器、显示屏;
    所述显示屏,用于显示用户界面;
    所述存储器用于存储一个或多个计算机程序,所述计算机程序被所述处理器执行时,使得所述电子设备执行:
    获取第一图片、第二图片和第三图片,其中所述第一图片包括目标控件的第一部分,所述第二图片包括所述目标控件的第二部分,所述第三图片包括数字时钟;
    依次将所述第一图片、所述第三图片和所述第二图片叠加,生成待显示画面,其中,在所述待显示画面中,所述目标控件的第一部分和第二部分组成所述目标控件,所述目标控件与所述数字时钟的至少一个数字部分重叠;
    在所述显示屏处于息屏显示状态下,显示所述待显示画面。
  12. 如权利要求11所述的电子设备,其特征在于,所述数字时钟包括用于表示小时的数字和用于表示分钟的数字,且所述用于表示小时的数字和所述用于表示分钟的数字位于不同行;所述用于表示小时的数字包括位于十位的第一数字和位于个位的第二数字;所述待显示画面包括的所述目标控件与所述第一数字部分重叠。
  13. 如权利要求11或12所述的电子设备,其特征在于,所述计算机程序被所述处理器执行时,使得所述电子设备还执行:
    分别根据所述第一图片和所述第三图片的文件名,调用所述第一图片和所述第三图片;
    其中,所述第一图片的文件名为:所述数字时钟的布局类型、与所述目标控件部分重叠的数字的取值、所述第一图片与所述数字时钟的位置关系,所述第三图片的文件名为:所述数字时钟的时钟布局类型、数字时钟上与所述目标控件部分重叠的数字的取值、所述第三图片与所述数字时钟的位置关系。
  14. 如权利要求11-13任一项所述的电子设备,其特征在于,所述目标控件的第一部分的尺寸小于所述第一图片的尺寸,所述目标控件的第二部分的尺寸小于所述第二图片的尺寸。
  15. 如权利要求11-14任一项所述的电子设备,其特征在于,所述数字时钟的布局为单时钟布局或双时钟布局。
  16. 如权利要求11-15任一项所述的电子设备,其特征在于,所述数字时钟包括的每个数字对应三组图片资源,所述三组图片资源包括单时钟布局对应的一组图片资源和双时钟布局中两个时钟分别对应的两组图片资源,每组图片资源包括作为背景层的第一图片和作为前景层的第二图片。
  17. 如权利要求11-16任一项所述的电子设备,其特征在于,所述第一图片、第二图片和第三图片的图片格式均为图像文件存储png格式。
  18. 如权利要求11-17任一项所述的电子设备,其特征在于,所述目标控件为鸟的图案。
  19. 如权利要求11-18任一项所述的电子设备,其特征在于,所述计算机程序被所述处理器执行时,使得所述电子设备还执行:
    在所述显示屏处于息屏显示状态下,显示第一信息;其中,所述第一信息的颜色可设置为与所述数字时钟的数字颜色一致。
  20. 如权利要求11-19任一项所述的电子设备,其特征在于,所述计算机程序被所述处理器执行时,使得所述电子设备还执行:
    检测到对所述目标控件上的点击操作;
    响应于所述点击操作,播放所述数字时钟的时间。
  21. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至10任一项所述的方法。
PCT/CN2021/082340 2020-03-25 2021-03-23 一种显示时间的方法及电子设备 WO2021190489A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/913,071 US20230143866A1 (en) 2020-03-25 2021-03-23 Time display method and electronic device
EP21775242.7A EP4116822A4 (en) 2020-03-25 2021-03-23 TIME DISPLAY METHOD AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010219136.7A CN113515327A (zh) 2020-03-25 2020-03-25 一种显示时间的方法及电子设备
CN202010219136.7 2020-03-25

Publications (1)

Publication Number Publication Date
WO2021190489A1 true WO2021190489A1 (zh) 2021-09-30

Family

ID=77890958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/082340 WO2021190489A1 (zh) 2020-03-25 2021-03-23 一种显示时间的方法及电子设备

Country Status (4)

Country Link
US (1) US20230143866A1 (zh)
EP (1) EP4116822A4 (zh)
CN (1) CN113515327A (zh)
WO (1) WO2021190489A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116382825B (zh) * 2022-04-21 2024-03-01 华为技术有限公司 界面布局方法和装置
CN115454230A (zh) * 2022-10-10 2022-12-09 苇创微电子(上海)有限公司 一种用于息屏显示的降低驱动芯片功耗的方法和显示系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160057363A1 (en) * 2014-08-25 2016-02-25 John G. Posa Portable electronic devices with integrated image/video compositing
CN105739808A (zh) * 2014-12-08 2016-07-06 阿里巴巴集团控股有限公司 终端设备上光标移动显示方法及其装置
CN108388467A (zh) * 2018-04-03 2018-08-10 北京搜狗科技发展有限公司 一种界面显示的方法、装置和设备
CN110149442A (zh) * 2019-04-10 2019-08-20 华为技术有限公司 一种熄屏显示的控制方法及终端设备
CN110536151A (zh) * 2019-09-11 2019-12-03 广州华多网络科技有限公司 虚拟礼物特效的合成方法和装置、直播系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012090019A (ja) * 2010-10-18 2012-05-10 Kyocera Corp 電子機器、制御方法、プログラムおよびデータファイル
CN103259972A (zh) * 2012-02-17 2013-08-21 佳能企业股份有限公司 影像处理方法及成像装置
CN106886351B (zh) * 2017-02-14 2020-01-17 Oppo广东移动通信有限公司 一种终端时间信息的显示方法、装置及计算机设备
CN110389736A (zh) * 2019-06-05 2019-10-29 华为技术有限公司 一种投屏显示方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160057363A1 (en) * 2014-08-25 2016-02-25 John G. Posa Portable electronic devices with integrated image/video compositing
CN105739808A (zh) * 2014-12-08 2016-07-06 阿里巴巴集团控股有限公司 终端设备上光标移动显示方法及其装置
CN108388467A (zh) * 2018-04-03 2018-08-10 北京搜狗科技发展有限公司 一种界面显示的方法、装置和设备
CN110149442A (zh) * 2019-04-10 2019-08-20 华为技术有限公司 一种熄屏显示的控制方法及终端设备
CN110536151A (zh) * 2019-09-11 2019-12-03 广州华多网络科技有限公司 虚拟礼物特效的合成方法和装置、直播系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XIAO BAI U PIN: "Huawei EMUI 10.1 Officially Launched! What's New Compared to EMUI10?", 26 March 2020 (2020-03-26), CN, XP054982417, Retrieved from the Internet <URL:https://haokan.baidu.com/v?vid=9142859350323593875&pd=bjh&fr=bjhauthor&type=video> *

Also Published As

Publication number Publication date
CN113515327A (zh) 2021-10-19
US20230143866A1 (en) 2023-05-11
EP4116822A1 (en) 2023-01-11
EP4116822A4 (en) 2023-08-23

Similar Documents

Publication Publication Date Title
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
CN109814766B (zh) 一种应用显示方法及电子设备
WO2021135730A1 (zh) 显示界面适配方法、显示界面适配设计方法和电子设备
WO2021169337A1 (zh) 屏下指纹显示方法及电子设备
WO2021036735A1 (zh) 显示用户界面的方法及电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036585A1 (zh) 一种柔性屏显示方法和电子设备
WO2021000804A1 (zh) 锁定状态下的显示方法及装置
WO2021042978A1 (zh) 一种主题切换方法以及主题切换装置
WO2020093988A1 (zh) 一种图像处理方法及电子设备
WO2021036785A1 (zh) 一种消息提醒方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2021190344A1 (zh) 多屏幕显示电子设备和电子设备的多屏幕显示方法
CN113961157B (zh) 显示交互系统、显示方法及设备
CN114327127B (zh) 滑动丢帧检测的方法和装置
WO2021042894A1 (zh) 一种电子设备的sim卡掉卡恢复方法及电子设备
WO2021254438A1 (zh) 驱动控制方法及相关设备
WO2022001258A1 (zh) 多屏显示方法、装置、终端设备及存储介质
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2020155875A1 (zh) 电子设备的显示方法、图形用户界面及电子设备
WO2022095744A1 (zh) Vr显示控制方法、电子设备及计算机可读存储介质
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2021190489A1 (zh) 一种显示时间的方法及电子设备
WO2021073183A1 (zh) 始终显示方法及移动设备
CN114444000A (zh) 页面布局文件的生成方法、装置、电子设备以及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21775242

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021775242

Country of ref document: EP

Effective date: 20221005

NENP Non-entry into the national phase

Ref country code: DE