WO2022088919A1 - Interface display method and electronic device - Google Patents

Interface display method and electronic device Download PDF

Info

Publication number
WO2022088919A1
WO2022088919A1 PCT/CN2021/115440 CN2021115440W WO2022088919A1 WO 2022088919 A1 WO2022088919 A1 WO 2022088919A1 CN 2021115440 W CN2021115440 W CN 2021115440W WO 2022088919 A1 WO2022088919 A1 WO 2022088919A1
Authority
WO
WIPO (PCT)
Prior art keywords
display screen
electronic device
user interface
display
coordinate system
Prior art date
Application number
PCT/CN2021/115440
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2022088919A1 publication Critical patent/WO2022088919A1/en

Links

Images

Classifications

    • 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
    • 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
    • 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/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to an interface display method and an electronic device.
  • the existing AOD gradient color clock often adjusts the color display effect of elements in the user interface displayed on the display screen of the electronic device based on the day length information corresponding to the current geographical location. Specifically, when determining the day length corresponding to the current geographical location After receiving the information, following the time change from sunrise to sunset, the preset different gradient color values are changed at regular intervals to adjust the color display effect of the elements in the user interface displayed on the display screen of the electronic device.
  • the transformation method is still relatively fixed, and the display styles of elements in the user interface displayed on the display screen of the electronic device actually seen by the users at the same time and in the same geographical location are the same.
  • Embodiments of the present application provide an interface display method and an electronic device, so as to solve the problem that the existing interface display method lacks a closer sense of interaction with the user, resulting in poor user experience.
  • an embodiment of the present application provides an interface display method, including: establishing a rectangular space coordinate system that is fixed when the electronic device rotates with the center of a display screen of an electronic device as an origin, and determining that the electronic device surrounds The orientation of the display screen when any coordinate axis of the space rectangular coordinate system is rotated; the current geographic location of the electronic device is obtained, and the illumination information corresponding to the current geographic location is determined; based on the illumination information corresponding to the current geographic location , determine the relationship between the orientation of the display screen and the lighting direction; based on the relationship between the orientation of the display screen and the lighting direction, determine the projection of the elements in the user interface displayed on the display screen, and adjust the orientation of the display screen.
  • the display style of elements in the user interface including: establishing a rectangular space coordinate system that is fixed when the electronic device rotates with the center of a display screen of an electronic device as an origin, and determining that the electronic device surrounds The orientation of the display screen when any coordinate axis of the space rectangular coordinate system is rotated; the current
  • the orientation of the display screen when the electronic device rotates around any coordinate axis of the space rectangular coordinate system is determined by using the center of the display screen of the electronic device as the origin to establish a rectangular space coordinate system that is fixed when the electronic device rotates , based on the relationship between the orientation of the display screen and the lighting direction corresponding to the current geographical location of the electronic device, determine the projection of the elements in the user interface displayed by the display screen, and adjust the display style of the elements in the user interface displayed by the display screen so that the user's The sense of interaction is closer and the user experience is improved.
  • the method further includes: determining wind direction information corresponding to the current geographic location; determining a relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location; The relationship between the orientation of the display screen and the wind direction determines the moving direction of elements in the user interface displayed on the display screen, and adjusts the display style of the elements in the user interface displayed on the display screen.
  • the horizontal axis of the spatial rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the spatial rectangular coordinate system is parallel to the second side of the display screen, so The vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is a side parallel to the horizon, and the second side is a side perpendicular to the horizon.
  • the illumination information includes the illumination directions of the sun corresponding to different times;
  • the wind direction information includes the wind directions corresponding to different times.
  • determining the projection of elements in the user interface displayed by the display screen based on the relationship between the orientation of the display screen and the illumination direction includes: based on the orientation of the display screen and the illumination direction. The position of the center point of the light-receiving area of the electronic device relative to the display screen is determined; based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, the display screen display is determined. A projection of elements in the user interface.
  • determining the projection of the elements in the user interface displayed on the display screen including:
  • the display screen displays The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the spatial Cartesian coordinate system;
  • the display screen is The projection of the element in the displayed user interface extends and extends along the illumination direction from the bottom of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system;
  • the projection of the element in the user interface displayed by the display screen is the shape formed when the light irradiates the outer contour of the element,
  • the display plane on which the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  • the present application also provides an electronic device, the electronic device has a function of implementing the first aspect or any possible method in the design of the first aspect, and the function can be implemented by hardware or by The hardware executes the corresponding software implementation.
  • the hardware or software includes one or more modules corresponding to the above functions, such as a first determination module, a second determination module, a third determination module, and a first adjustment module.
  • the first determining module is used to establish a rectangular space coordinate system that is fixed when the electronic device rotates with the center of the display screen of the electronic device as the origin, and determine that the electronic device surrounds the The orientation of the display screen when any coordinate axis of the space rectangular coordinate system rotates;
  • the second determining module is configured to acquire the current geographic location of the electronic device, and determine the illumination information or wind direction information corresponding to the current geographic location;
  • the third determination module is configured to determine the relationship between the orientation of the display screen and the lighting direction or wind direction information based on the illumination information corresponding to the current geographic location, and determine the orientation of the display screen and the orientation of the display screen.
  • the first adjustment module is configured to determine the projection of elements in the user interface displayed by the display screen based on the relationship between the orientation of the display screen and the lighting direction, and adjust the display.
  • the electronic device further includes:
  • a fourth determining module configured to determine wind direction information corresponding to the current geographic location
  • a fifth determining module configured to determine the relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location
  • the second adjustment module is configured to, based on the relationship between the orientation of the display screen and the wind direction, determine the moving direction of the elements in the user interface displayed by the display screen, and adjust the movement direction of the elements in the user interface displayed by the display screen. Display style.
  • the horizontal axis of the spatial rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the spatial rectangular coordinate system is parallel to the second side of the display screen, so The vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is a side parallel to the horizon, and the second side is a side perpendicular to the horizon.
  • the illumination information includes the illumination directions of the sun corresponding to different times;
  • the wind direction information includes the wind directions corresponding to different times.
  • the first adjustment module is specifically configured to: determine the center point of the light-receiving area of the electronic device relative to the display screen based on the relationship between the orientation of the display screen and the lighting direction. position; based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, determine the projection of the element in the user interface displayed by the display screen.
  • the first adjustment module is specifically used for:
  • the display screen displays The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the spatial Cartesian coordinate system;
  • the display screen is The projection of the element in the displayed user interface extends from the bottom of the element along the illumination direction, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  • the projection of the element in the user interface displayed by the display screen is the shape formed when the light irradiates the outer contour of the element,
  • the display plane on which the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  • the present application further provides a computer storage medium, where the computer storage medium includes computer instructions, when the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the first aspect or the first aspect. Any possible in-design approach.
  • the present application further provides a computer program product that, when the computer program product runs on a computer, causes the computer to execute the first aspect or any possible method in design of the first aspect.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an interface display method provided by an embodiment of the present application.
  • 3a is a schematic diagram of a space rectangular coordinate system provided by an embodiment of the application.
  • 3b is a schematic diagram of an electronic device rotating around any coordinate axis of a space rectangular coordinate system according to an embodiment of the application;
  • 3c is a schematic diagram of illumination information provided by an embodiment of the present application.
  • 3d is a schematic diagram of an electronic device rotating around an x-axis of a space rectangular coordinate system according to an embodiment of the application;
  • 3e is a schematic diagram of a projection effect provided by an embodiment of the present application.
  • 3f is a schematic diagram of an electronic device rotating around the y-axis of a space rectangular coordinate system according to an embodiment of the application;
  • 3g is a schematic diagram of another projection effect provided by an embodiment of the application.
  • 3h is a schematic diagram of another electronic device rotating around the y-axis of a space rectangular coordinate system provided by an embodiment of the application;
  • 3i is a schematic diagram of another projection effect provided by an embodiment of the present application.
  • 3j is a schematic diagram of an electronic device rotating around the z-axis of a space rectangular coordinate system according to an embodiment of the application;
  • 3k is a schematic diagram of another projection effect provided by an embodiment of the present application.
  • 31 is a schematic diagram of another electronic device rotating around the z-axis of a space rectangular coordinate system according to an embodiment of the application;
  • 3m is a schematic diagram of another projection effect provided by an embodiment of the application.
  • 3n is a schematic diagram of a movement direction of a raindrop provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • the orientation of the display screen of the electronic device refers to the direction in which the display screen of the electronic device faces.
  • An application program is a software program that can implement one or more specific functions.
  • multiple applications may be installed in an electronic device, for example, instant messaging applications, video applications, audio applications, image capturing applications, and the like.
  • instant messaging applications for example, may include SMS applications, Changlian, WeChat (WeChat), WhatsApp Messenger, Line (Line), photo sharing (Instagram), Kakao Talk, DingTalk, and the like.
  • Image capturing applications for example, may include camera applications (system cameras or third-party camera applications).
  • Video applications for example, may include Youtube, Twitter, Douyin, iQiyi, Tencent Video, and so on.
  • Audio applications may include Google Music, Kugou Music, Xiami, QQ Music, and so on.
  • the applications mentioned in the following embodiments may be applications that have been installed when the electronic device leaves the factory, or may be applications downloaded by the user from the network or obtained from other electronic devices during the use of the electronic device.
  • the existing AOD gradient color clock often adjusts the color display effect of the elements in the user interface displayed on the display screen of the electronic device based on the day length information corresponding to the current geographical location. Specifically, after determining the day length information corresponding to the current geographical location , following the time change from sunrise to sunset, every certain time interval, change the preset different gradient color values, and adjust the color display effect of the elements in the user interface displayed on the display screen of the electronic device.
  • the transformation method is still relatively fixed, and the display styles of elements in the user interface displayed on the display screen of the electronic device actually seen by the users at the same time and in the same geographical location are the same. It can be seen that the existing interface display method lacks a closer sense of interaction with the user, resulting in poor user experience.
  • the electronic device in the embodiments of the present application adjusts the display of elements in the user interface displayed by the display screen of the electronic device in real time based on the orientation of the display screen of the electronic device when the electronic device rotates around any coordinate axis of the space rectangular coordinate system Style, increase the sense of interaction with the user, and improve the user experience.
  • the embodiments of the present application may be applied to a variety of electronic devices, and the electronic devices may be portable electronic devices including functions such as personal digital assistants and/or music players, such as mobile phones, tablet computers, and wireless communication devices. Wearable devices (such as smart watches), etc. Exemplary embodiments of portable electronic devices include, but are not limited to, carry-on Or portable electronic devices with other operating systems.
  • the portable electronic device described above may also be other portable electronic devices, such as a laptop or the like having a touch-sensitive surface (eg, a touch panel). It should also be understood that, in some other embodiments of the present application, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer having a touch-sensitive surface (eg, a touch panel).
  • FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, the electronic device 100 shown in FIG.
  • the sensor module 180 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a general-purpose Universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 151, wireless communication module 152, positioning module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • the sensor module 180 may include a gyro sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K.
  • the electronic device 100 may also include other sensors such as a pressure sensor C, an air pressure sensor D, and a magnetic sensor E. , distance sensor F, proximity light sensor G, ambient light sensor I, bone conduction sensor L, etc., which are not shown in the figure.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), 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 (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold 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 called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may be configured to run the code of the interface display method provided by the embodiment of the present application, and realize the interface display process, and the specific process will be introduced later.
  • the external memory interface 120 is used to connect the external memory with the electronic device 100, wherein the external memory includes an external memory card (SD memory card), a NAS storage device, etc., which is not limited in the embodiment of the present application.
  • the electronic device 100 may also store software codes, textures (ie, pictures), etc. for executing the interface display method in the external memory.
  • the processor 110 may access data stored in the external memory through the external memory interface 120 .
  • the internal memory 121 is used for storing computer-executable program codes, where the executable program codes include instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store software codes of operating systems and applications (such as WeChat applications, camera applications, etc.).
  • the storage data area may store personal data created during the use of the electronic device 100 (such as pictures, videos, etc. taken by the camera application).
  • the internal memory 121 may also store software codes for executing the interface display method. When the processor 110 runs the code, the function of the interface display process is realized. Internal memory 121 may also be used to store textures (ie, pictures).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • non-volatile memory such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the function of the sensor module 180 is described below.
  • the gyroscope sensor 180A can be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180A can be used to detect the current motion state of the electronic device 100, such as shaking or stillness.
  • the acceleration sensor 180B can be used to detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). That is, the gyro sensor 180A can be used to detect the current motion state of the electronic device 100, such as shaking or stillness.
  • the gyro sensor 180A (or the acceleration sensor 180B) may send the detected motion state information (such as angular velocity) to the processor 110 .
  • the processor 110 determines whether the current state is the hand-held state or the tripod state based on the motion state information. For example, when the angular velocity is not 0, it means that the electronic device 100 is in the hand-held state.
  • the fingerprint sensor 180H can be used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • Camera 193 (front camera or rear camera, or one camera can be both front camera and rear camera) is used to capture still images or video.
  • the camera 193 may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex or concave) for collecting light signals reflected by the object to be photographed, and transmitting the collected light signals to the image sensor .
  • the image sensor generates an original image of the object to be photographed according to the light signal.
  • the display screen 194 can be used to display images, videos, etc., for example, used to display the main interface, or the display interface of an application.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed
  • quantum dot light-emitting diode quantum dot light emitting diodes, QLED
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the main interface includes icons of multiple applications, such as a camera application, a setting application, a WeChat application, a QQ application, and the like.
  • the touch sensor 180K can detect the user's touch operation on the display screen 194, and send the touch operation to the processor 110. Based on the touch operation, the processor 100 can determine the icon corresponding to the touch operation, that is, determine the icon to be clicked by the user. For example, the user clicks the icon of the camera application in the main interface through the touch sensor 180K, triggers the processor 110 to start the camera application, turns on the camera 193, and the display screen 194 displays the interface of the camera application.
  • the electronic device 100 may also receive an input operation through the key 190, and send the input operation to the processor 110, and the processor 110 determines an icon corresponding to the input operation.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 151 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 100 .
  • the mobile communication module 151 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 151 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 151 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 151 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 151 may be provided in the same device as at least part of the modules of the processor 110 .
  • 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. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modulation and demodulation processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 151 or other functional modules.
  • the wireless communication module 152 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellites System
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • IR infrared technology
  • the wireless communication module 152 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 152 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 152 can also receive the signal to be sent from the processor 110, perform frequency modulation on it, amplify it, and convert it into electromagnetic waves
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the electronic device 100 may receive the key 190 input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the electronic device 100 may use the motor 191 to generate a vibration alert, such as a vibration alert for an incoming call.
  • the indicator 192 in the electronic device 100 may be an indicator light, which may be used to indicate a charging state, a change in power, and may also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 in the electronic device 100 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may implement the function of locating the current geographic location of the electronic device 100 through the positioning module 160 .
  • the positioning method adopted by the positioning module 160 may be one or more positioning methods such as GPS, base station, WiFi hotspot, Bluetooth (iBacon), assisted GPS (assisted GPS, AGPS).
  • the electronic device 100 may include more or less components than those shown in FIG. 1 , which are not limited in the embodiments of the present application.
  • first and second in the embodiments of the present application are only used for description purposes, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • At least one means one or more
  • plural means two or more.
  • “And/or”, which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • at least one (a) of a, b, or c may represent: a, b, c, a and b, a and c, b and c, or a and b and c.
  • FIG. 2 it is a schematic flowchart of an interface display method provided by an embodiment of the present application.
  • the interface display method can be applied to the electronic device shown in the above-mentioned FIG. 1 or with a similar functional structure to that of FIG. 1, that is, the interface
  • the display method can be performed by various hardware parts in the electronic device in combination with corresponding software programs.
  • the specific flow of the interface display method is described as follows.
  • any one side of the display screen of the electronic device can be set to be horizontal to the horizon, and the other side can be set to be perpendicular to the horizon, and the center of the display screen of the electronic device can be set as the space rectangular coordinate system
  • the origin is established in the space rectangular coordinate system that is fixed when the electronic equipment rotates, that is, the space rectangular coordinate system does not change when the electronic equipment rotates, wherein the horizontal axis (x axis) of the space rectangular coordinate system is parallel to the electronic equipment.
  • the first side of the display screen of the device is the side of the display screen of the electronic device that is parallel to the horizon, and the vertical axis (y-axis) of the spatial Cartesian coordinate system is parallel to the second side of the display screen of the electronic device
  • the second side is the side of the display screen of the electronic device perpendicular to the horizon, and the vertical axis (z-axis) of the space rectangular coordinate system is perpendicular to the plane where the display screen of the electronic device is located.
  • the electronic device can be rotated around any coordinate axis of the above-established spatial rectangular coordinate system, for example, around the x-axis, y-axis or z-axis of the above-established spatial rectangular coordinate system
  • the rotation may be clockwise or counterclockwise, which is not specifically limited in this embodiment of the present application.
  • the display of the electronic device when the electronic device rotates around any coordinate axis of the space rectangular coordinate system can be determined by the gyroscope sensor or acceleration sensor in the electronic device. orientation of the screen.
  • the gyroscope sensor in the electronic device can determine the angular velocity of the electronic device rotating around the three coordinate axes of the space rectangular coordinate system, and send the detected angular velocity to the electronic device.
  • the processor enables the processor to determine the current orientation of the display screen of the electronic device based on the angular velocity, and to determine whether the current electronic device is in a handheld state or a tripod state. is 0, the angular velocity of the rotation around the y-axis and the z-axis of the space rectangular coordinate system is 0, then it is determined that the current electronic device is rotating around the x-axis of the space rectangular coordinate system, and further based on the current electronic device is rotating around the space rectangular coordinate system.
  • the magnitude and direction of the angular velocity when the x-axis of the system rotates determine the current orientation of the display screen of the electronic device.
  • the acceleration sensor in the electronic device can send the detected acceleration to the processor in the electronic device by determining the acceleration of the electronic device on the three coordinate axes of the space rectangular coordinate system , so that the processor can determine the orientation of the display screen of the current electronic device based on the acceleration, for example, determine the motion acceleration of the electronic device based on the magnitude of the acceleration of the electronic device on the x-axis, y-axis and z-axis of the space rectangular coordinate system, respectively, The current orientation of the display screen of the electronic device is further determined based on the magnitude and direction of the motion acceleration of the electronic device.
  • S202 Acquire the current geographic location of the electronic device, and determine illumination information or wind direction information corresponding to the current geographic location.
  • the current geographic location of the electronic device may be obtained through a positioning module in the electronic device, wherein the positioning method used by the positioning module may be GPS, base station, WiFi hotspot, iBacon, assisted GPS (assisted GPS, AGPS)
  • the positioning method used by the positioning module may be GPS, base station, WiFi hotspot, iBacon, assisted GPS (assisted GPS, AGPS)
  • assisted GPS assisted GPS, AGPS
  • illumination information corresponding to the current geographic location may be determined, wherein the illumination information includes the illumination directions of the sun corresponding to different times of the day in the physical world, as shown in FIG. 3c , Take 6:00 as the sunrise time and 18:00 as the sunset time as an example. At 6:00, the sun is generally in the east direction, and the light direction is from east to west. At 12:00, the sun is generally in the middle of the height of the day. The direction is vertically downward, the sun is generally in the west direction at 18:00, and the light direction is from west to east.
  • wind direction information corresponding to the current geographic location may also be determined, wherein the weather wind direction information includes wind directions corresponding to different times of the day in the physical world, such as northeasterly wind and southeasterly wind.
  • S203. Determine the relationship between the orientation of the display screen of the electronic device and the lighting direction based on the illumination information corresponding to the current geographic location, or determine the relationship between the orientation and the wind direction of the display screen of the electronic device based on the wind direction information corresponding to the current geographic location.
  • the illumination direction of the sun corresponding to the current time may be determined based on illumination information corresponding to the current geographic location, and then the relationship between the current orientation of the display screen of the electronic device and the illumination direction may be determined, for example, the time 18:00 is For example, at this time, the sun is generally in the west direction, and the illumination direction is from the west side to the east side. If the display screen of the electronic device is perpendicular to the ground plane at this time, and the front side of the display screen of the electronic device is facing south, then the display of the electronic device is determined. The orientation of the screen is related to the direction of light.
  • the wind direction corresponding to the current time can also be determined based on the wind direction information corresponding to the current geographic location, and then the relationship between the current orientation of the display screen of the electronic device and the wind direction can be determined.
  • the electronic device may be based on the user's behavior on the touch screen composed of the touch sensor and the display screen detected by the touch sensor in the electronic device.
  • Touch operation determine the application that the user wants to click, and display the relevant information of the application on the display screen. For example, when the touch sensor in the electronic device detects the user's touch operation on the touch screen, the touch operation is sent to the electronic device.
  • the processor in the based on the touch operation, the processor can determine the icon corresponding to the touch operation, that is, the application to be clicked by the user.
  • the processor determines that the user clicks on the clock application based on the touch operation
  • the elements in the user interface displayed on the display screen of the electronic device are the current time, such as "12:00", “18:00”, etc.
  • the processor determines based on the touch operation
  • the elements in the user interface displayed on the display screen of the electronic device are the current weather, such as clouds, fog, rain, snow, etc., that is, the elements in the user interface displayed on the display screen of the electronic device can be time, such as time.
  • “12:00", “18:00”, etc. can be weather, such as clouds, fog, rain, snow, etc., or a combination of time and weather, which is not limited in the embodiment of the present application.
  • the projection of the elements in the user interface displayed by the display screen may be determined based on the relationship between the orientation of the display screen of the electronic device and the lighting direction , adjusting the display style and lighting information of elements in the user interface displayed by the display screen of the electronic device, for example, adjusting the light reception and projection of the time in the user interface displayed by the display screen of the electronic device, or, based on the orientation of the display screen of the electronic device The relationship with the wind direction, determining the moving direction of elements in the user interface displayed on the display screen, and adjusting the display style of the elements in the user interface displayed on the display screen of the electronic device, for example, adjusting the user interface displayed on the display screen of the electronic device. Movement direction of raindrops.
  • the display styles of elements in the user interface displayed on the display screen of the electronic device may be adjusted in two ways. For example, when the electronic device rotates around any coordinate axis of the space rectangular coordinate system and the orientation of the display screen of the electronic device changes, it can be determined based on the illumination information corresponding to the current geographic location that the orientation of the display screen of the electronic device is constantly changing.
  • the relationship between the lighting direction based on the relationship between the orientation of the display screen of the electronic device and the lighting direction, determine the projection of the elements in the user interface displayed by the display screen that is constantly changing, and adjust the user interface displayed by the display screen of the electronic device.
  • the display style of the element such as the element's lighting and shadowing.
  • the electronic device when the electronic device rotates around any coordinate axis of the space rectangular coordinate system, and the orientation of the display screen of the electronic device changes, it can be determined based on the wind direction information corresponding to the current geographical location that the orientation of the display screen of the electronic device is constantly changing.
  • the relationship of wind direction based on the relationship between the changing orientation of the display screen of the electronic device and the wind direction, determine the moving direction of the elements in the user interface displayed by the constantly changing display screen, and adjust the elements in the user interface displayed by the display screen of the electronic device
  • the display style of the element such as the moving direction of the element.
  • Method 1 if the element in the user interface displayed by the display screen of the electronic device is time, after establishing a rectangular space coordinate system with the center of the display screen of the electronic device as the origin, when the electronic device rotates around any coordinate axis of the rectangular space coordinate system , when the orientation of the display screen of the electronic device changes, the relationship between the current orientation of the display screen of the electronic device and the lighting direction is determined in real time in combination with the lighting information corresponding to the current geographical location, and based on the relationship between the current orientation of the display screen of the electronic device and the lighting direction, The projection of the time in the user interface displayed on the current display screen is determined, and the light reception and projection of the time in the user interface displayed by the display screen of the electronic device are adjusted.
  • the first side is the side of the display screen of the electronic device that is parallel to the horizon, or, when the display screen is parallel to the ground plane
  • the front of the display screen, the projection of the element in the user interface displayed by the display screen coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  • the center point of the light-receiving area of the electronic device moves from A1 to A2.
  • the element "12:00" in the user interface displayed on the display screen of the electronic device receives more light in the middle, and the brightness in the middle is higher; if the back of the display screen of the electronic device is turned up, it can be determined that the user displayed on the display screen of the electronic device at this time
  • the element "12:00" in the interface is not illuminated and has low brightness.
  • the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
  • the top of the element "12:00” in the user interface displayed on the display screen of the electronic device receives more light, and the top has a higher brightness.
  • the lower part receives less light, and the lower part has lower brightness.
  • the projection formed by the object in the physical world exposed to sunlight at noon the projection of the element "12:00” in the user interface displayed on the display screen of the electronic device and the element
  • the outer contour of "12:00” coincides and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
  • the center point of the light-receiving area of the electronic device moves from A1 to A2.
  • the element "12:00" in the user interface receives more light in the middle, and the brightness in the middle is higher, then refer to the projection formed by the object in the physical world exposed to sunlight at noon, and the display screen of the electronic device displays the element in the user interface " The projection of 12:00" coincides with the outer contour of the element "12:00” and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
  • the center point of the light-receiving area of the electronic device moves from A1 to A2.
  • the element "12:00" in the user interface is not exposed to light and the brightness is low.
  • the display screen of the electronic device displays the element "12:00" in the user interface. ” produces a backlit glow effect.
  • the second side is the side of the display screen of the electronic device that is perpendicular to the horizon, or, when the display screen is perpendicular to the ground plane
  • the front or back of the display screen the projection of the element in the user interface displayed by the display screen extends and extends along the illumination direction from the bottom of the element, and the display plane where the projection is located is parallel to the horizontal direction of the spatial Cartesian coordinate system.
  • the electronic device rotates around the y-axis of the space rectangular coordinate system established above, if the display screen of the electronic device faces east after the rotation, and the center point of the light-receiving area of the electronic device moves from A1 to A2, it can be determined that the electronic device at this time 's display shows that the element "18:00" in the user interface is not illuminated and has low brightness.
  • the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
  • the element "18:00" in the user interface displayed on the display screen of the electronic device receives more light on the west side, and the brightness on the west side is higher. High, the east side receives less light, and the east side has low brightness, then refer to the projection of objects in the physical world that are irradiated by the sun's rays at sunset.
  • the projection of the element "18:00" in the interface extends from the west side of the bottom of the element "18:00" to the east side, and the eastward displacement distance is long;
  • the display screen of the electronic device faces east after the rotation, the center point of the light-receiving area of the electronic device moves from A1 to A2, and the display screen of the electronic device displays The element "18:00" in the user interface is not exposed to light and the brightness is low.
  • the sun's rays are illuminated from the back of the element, and the user interface displayed on the display screen of the electronic device
  • the projection of the element "18:00” in the element “18:00” extends from the west to the east at the bottom of the element "18:00", and is displayed at the bottom of the element "18:00", that is, the element in the user interface displayed by the display screen of the electronic device
  • the projection of "18:00” spreads forward from the bottom of the element "18:00”
  • the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system.
  • the electronic device rotates around the y-axis of the space rectangular coordinate system established above, if the display screen of the electronic device faces west after the rotation, and the center point of the light-receiving area of the electronic device moves from A1 to A3, it can be determined that the electronic device at this time
  • the element "18:00" in the user interface displayed on the display screen of receives light in the middle, and has a higher brightness in the middle.
  • the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
  • the element "18:00” in the user interface displayed on the display screen of the electronic device receives more light on the west side, and the brightness on the west side is higher. High, the east side receives less light, and the east side has low brightness, then refer to the projection of objects in the physical world that are irradiated by the sun's rays at sunset.
  • the projection of the element "18:00" in the interface extends from the west side of the bottom of the element "18:00" to the east side, and the eastward displacement distance is long;
  • the element "18:00” in the user interface receives light in the middle, and the brightness in the middle is higher, then refer to the projection formed by the sun's rays irradiated by the objects in the physical world at sunset.
  • the projection of the element "18:00” in the interface extends from the west to the east at the bottom of the element "18:00", and is displayed at the bottom of the element "18:00", that is, in the user interface displayed by the display screen of the electronic device.
  • the projection of the element "18:00” extends backward from the bottom of the element "18:00", and the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system.
  • the projection of the elements in the user interface displayed by the display screen is the shape formed on the plane formed when the light irradiates the outer contour of the element.
  • the display plane where it is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  • the center point of the light-receiving area of the electronic device moves from A1 to A2, and the elements in the user interface displayed on the display screen of the electronic device can be determined at this time. "12:00"
  • the west side receives more light, the west side has higher brightness, the east side receives less light, and the east side has lower brightness.
  • the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
  • the top of the element "12:00” in the user interface displayed on the display screen of the electronic device receives more light, and the top is brighter.
  • the lower part receives less light, and the lower part has lower brightness.
  • the projection of the element "12:00” in the user interface displayed on the display screen of the electronic device and the element The outer contour of "12:00” coincides and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
  • the center point of the light-receiving area of the electronic device moves from A1 to A2, and the element "12:00" in the user interface displayed on the display screen of the electronic device
  • the west side receives more light
  • the west side has higher brightness
  • the east side receives less light
  • the east side has lower brightness.
  • the projection formed by the object in the physical world when it is illuminated by sunlight at noon and the user interface displayed on the display screen of the electronic device
  • the projection of the element "12:00” in the element "12:00” is the shape formed when the light irradiates the outer contour of the element "12:00", that is, the shape of the bottom view of the element.
  • the display plane where the projection is located is always parallel to the xz plane of the space rectangular coordinate system. Changes occur as the electronic device rotates.
  • the x-axis of the above-established spatial rectangular coordinate system is aligned with the east-west horizontal direction, and the y-axis and z-axis of the spatial rectangular coordinate system are respectively perpendicular to East-West horizontal orientation.
  • the sun is generally in the middle of the height of the day
  • the illumination direction is vertically downward
  • the center point of the light-receiving area of the electronic device is A1
  • the element "12:00" in the user interface displayed on the display screen of the electronic device can be determined at this time.
  • the top receives more light, the top brightness is higher, the lower part receives less light, and the lower brightness is lower.
  • the center point of the light-receiving area of the electronic device moves from A1 to A3, and the elements in the user interface displayed on the display screen of the electronic device can be determined at this time. "12:00"
  • the east side receives more light, the east side has higher brightness, the west side receives less light, and the west side has lower brightness.
  • the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
  • the top of the element "12:00” in the user interface displayed on the display screen of the electronic device receives more light, and the top is brighter.
  • the lower part receives less light, and the lower part has lower brightness.
  • the projection of the element "12:00” in the user interface displayed on the display screen of the electronic device and the element The outer contour of "12:00” coincides and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
  • the center point of the light-receiving area of the electronic device moves from A1 to A3, and the element "12:00" in the user interface displayed on the display screen of the electronic device
  • the east side receives more light
  • the east side has higher brightness
  • the west side receives less light
  • the west side has lower brightness
  • the user interface displayed on the display screen of the electronic device is referred to the projection formed by the object in the physical world exposed to sunlight at noon.
  • the projection of the element "12:00” in the element "12:00” is the shape formed when the light irradiates the outer contour of the element "12:00", that is, the shape of the bottom view of the element.
  • the display plane where the projection is located is always parallel to the xz plane of the space rectangular coordinate system. Changes occur as the electronic device rotates.
  • Method 2 If the elements in the user interface displayed by the display screen of the electronic device are raindrops, after establishing the space rectangular coordinate system with the center of the display screen of the electronic device as the origin, when the electronic device rotates around any coordinate axis of the space rectangular coordinate system , when the orientation of the display screen of the electronic device changes, combine the wind direction information corresponding to the current geographical location in real time to determine the relationship between the current orientation of the display screen of the electronic device and the wind direction, and adjust the movement of the raindrops in the user interface displayed by the display screen of the electronic device direction.
  • the wind direction corresponding to the current geographic location is the southeast wind
  • the wind direction corresponding to the current geographical location is the southwest direction
  • it can be determined that the movement direction of the raindrops in the user interface displayed on the display screen of the electronic device will change from the vertical direction to the southwest direction.
  • the moving direction of the raindrops in the user interface displayed by the display screen of the electronic device is still the vertical direction.
  • the embodiments of the present application further provide an electronic device, and the electronic device is used to implement the interface display methods in the above figures.
  • the electronic device 400 may include:
  • the first determination module 401 is used to establish a rectangular space coordinate system that is fixed when the electronic device rotates with the center of the display screen of the electronic device as the origin, and determine any one of the rectangular space coordinate systems surrounding the electronic device.
  • the second determining module 402 is configured to acquire the current geographic location of the electronic device, and determine the illumination information or wind direction information corresponding to the current geographic location;
  • a third determining module 403, configured to determine the relationship between the orientation of the display screen and the lighting direction or wind direction information based on the lighting information corresponding to the current geographic location, and determine the relationship between the orientation of the display screen and the lighting direction or wind direction;
  • the first adjustment module 404 is configured to, based on the relationship between the orientation of the display screen and the illumination direction, determine the projection of elements in the user interface displayed by the display screen, and adjust the elements in the user interface displayed by the display screen display style.
  • the electronic device further includes:
  • a fourth determining module configured to determine wind direction information corresponding to the current geographic location
  • a fifth determining module configured to determine the relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location
  • the second adjustment module is configured to, based on the relationship between the orientation of the display screen and the wind direction, determine the moving direction of the elements in the user interface displayed by the display screen, and adjust the movement direction of the elements in the user interface displayed by the display screen. Display style.
  • the horizontal axis of the spatial rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the spatial rectangular coordinate system is parallel to the second side of the display screen, so The vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is a side parallel to the horizon, and the second side is a side perpendicular to the horizon.
  • the illumination information includes the illumination directions of the sun corresponding to different times;
  • the wind direction information includes the wind directions corresponding to different times.
  • the first adjustment module 404 is specifically configured to: determine, based on the relationship between the orientation of the display screen and the illumination direction, the center point of the light-receiving area of the electronic device relative to the display. The position of the screen; based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, the projection of the elements in the user interface displayed by the display screen is determined.
  • the first adjustment module 404 is specifically used for:
  • the display screen displays The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the spatial Cartesian coordinate system;
  • the display screen is The projection of the element in the displayed user interface extends from the bottom of the element along the illumination direction, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  • the embodiments of the present application further provide an electronic device, and the electronic device is used to implement the interface display methods in the above figures. As shown in FIG.
  • the electronic device 500 may include one or more processors 501, one or more memories 502, a display screen 503; and one or more computer programs, wherein the one or more computer programs are stored in a In one or more memories 502 (not shown), the various devices described above may be coupled through one or more communication buses 504 .
  • the display screen 503 is used to display function icons and/or texts of various functions of the electronic device. Of course, it can also display the icons of various application programs assembled on the electronic device or the user when a certain application program is opened. interface diagram, etc.
  • the memory 502 stores one or more computer programs including instructions.
  • the processor 501 calls the instructions stored in the memory 502, so that the electronic device 500 can execute the above-mentioned Fig. 2, Fig. 3a, Fig. 3b, Fig. 3c, Fig. 3d, Fig. 3e, Fig. 3f, Fig. 3g, Fig. 3i, FIG. 3j, FIG. 3k, FIG. 3l, FIG. 3m, and the respective method embodiments shown in FIG. 3n.
  • the processor 501 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware components, which can implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software module may be located in the memory 502, and the processor 501 reads the program instructions in the memory 502, and completes the steps of the above method in combination with its hardware.
  • the memory 502 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or a volatile memory ( volatile memory), such as RAM.
  • the memory may also be, but is not limited to, any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing instructions and/or data.
  • the embodiments of the present application further provide a computer storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to execute the above FIG. 2, FIG. 3a, FIG. 3b, Figure 3c, Figure 3d, Figure 3e, Figure 3f, Figure 3g, Figure 3h, Figure 3i, Figure 3j, Figure 3k, Figure 3l, Figure 3m, Figure 3n show various method embodiments.
  • the embodiments of the present application also provide a computer program product, when the computer program product runs on a computer, the computer is made to execute the above Fig. 2, Fig. 3a, Fig. 3b, Fig. 3c, Fig. Figure 3d, Figure 3e, Figure 3f, Figure 3g, Figure 3h, Figure 3i, Figure 3j, Figure 3k, Figure 3l, Figure 3m, Figure 3n each method embodiment shown.
  • the embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, apparatuses, and computer program products involved in the embodiments.
  • each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams can be implemented by computer program instructions.
  • These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flows of the flowcharts and/or the block or blocks of the block diagrams.

Landscapes

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

Abstract

The present application provides an interface display method and electronic device, to address the lack of a closer sense of interaction with a user of existing interface display methods, resulting in poor user experience; said method comprises: taking the center of the display screen of an electronic device as the origin, establishing a space rectangular coordinate system which is fixed during the rotation of said electronic device, and determining the orientation of said display screen when the electronic device is rotated about any of the axes of said space rectangular coordinate system; obtaining the current geographic location of the electronic device, and determining illumination information corresponding to said current geographic location; on the basis of the illumination information corresponding to the current geographic location, determining the orientation of the display screen in relation to the direction of illumination; on the basis of the orientation of the display screen in relation to the direction of illumination, determining the projection of an element in the user interface displayed by said display screen and adjusting the display style of the element in the user interface displayed by said display screen.

Description

一种界面显示方法及电子设备Interface display method and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2020年10月31日提交中国专利局、申请号为202011197159.9、申请名称为“一种界面显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011197159.9 and the application title "An interface display method and electronic device" filed with the China Patent Office on October 31, 2020, the entire contents of which are incorporated into this application by reference middle.
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种界面显示方法及电子设备。The present application relates to the field of terminal technologies, and in particular, to an interface display method and an electronic device.
背景技术Background technique
随着科学技术发展,电子设备在人们生活中发挥了非常大的作用,在功能性满足的基础上,现有的电子设备更加追求个性化和惊喜感的体验,避免千篇一律,诉求电子设备能根据特定的环境和情景,变化出特有的样式。相比较固定的内容和形式,用户更加关注如何能够更加灵活地与电子设备互动,产生更加有趣的反馈。With the development of science and technology, electronic equipment has played a very important role in people's lives. On the basis of functional satisfaction, the existing electronic equipment pursues more personalized and surprising experience, avoids stereotypes, and demands that electronic equipment can be based on A specific environment and situation change into a unique style. Compared with the fixed content and form, users pay more attention to how to interact with electronic devices more flexibly and generate more interesting feedback.
例如,现有的AOD渐变色时钟常基于当前地理位置对应的昼长信息,调整电子设备的显示屏显示的用户界面中的元素的颜色显示效果,具体的,在确定当前地理位置对应的昼长信息后,跟随日出到日落的时间变化,每间隔一定时间,变换预先设定的不同的渐变色值,调整电子设备的显示屏显示的用户界面中的元素的颜色显示效果。变换方式仍相对固定,同一时间及处于同一地理位置的用户现实看到的电子设备的显示屏显示的用户界面中的元素的显示样式是相同的。For example, the existing AOD gradient color clock often adjusts the color display effect of elements in the user interface displayed on the display screen of the electronic device based on the day length information corresponding to the current geographical location. Specifically, when determining the day length corresponding to the current geographical location After receiving the information, following the time change from sunrise to sunset, the preset different gradient color values are changed at regular intervals to adjust the color display effect of the elements in the user interface displayed on the display screen of the electronic device. The transformation method is still relatively fixed, and the display styles of elements in the user interface displayed on the display screen of the electronic device actually seen by the users at the same time and in the same geographical location are the same.
由此可见,现有的界面显示方法缺乏更紧密的与用户的交互感,导致用户体验较差。It can be seen that the existing interface display method lacks a closer sense of interaction with the user, resulting in poor user experience.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种界面显示方法及电子设备,以解决现有的界面显示方法缺乏更紧密的与用户的交互感,导致用户体验较差的问题。Embodiments of the present application provide an interface display method and an electronic device, so as to solve the problem that the existing interface display method lacks a closer sense of interaction with the user, resulting in poor user experience.
第一方面,本申请实施例提供一种界面显示方法,包括:以电子设备的显示屏的中心为原点建立在所述电子设备转动时固定不变的空间直角坐标系,确定所述电子设备围绕所述空间直角坐标系的任一坐标轴转动时所述显示屏的朝向;获取所述电子设备当前地理位置,确定所述当前地理位置对应的光照信息;基于所述当前地理位置对应的光照信息,确定所述显示屏的朝向与光照方向关系;基于所述显示屏的朝向与所述光照方向的关系,确定所述显示屏显示的用户界面中的元素的投影,调整所述显示屏显示的用户界面中的元素的显示样式。In a first aspect, an embodiment of the present application provides an interface display method, including: establishing a rectangular space coordinate system that is fixed when the electronic device rotates with the center of a display screen of an electronic device as an origin, and determining that the electronic device surrounds The orientation of the display screen when any coordinate axis of the space rectangular coordinate system is rotated; the current geographic location of the electronic device is obtained, and the illumination information corresponding to the current geographic location is determined; based on the illumination information corresponding to the current geographic location , determine the relationship between the orientation of the display screen and the lighting direction; based on the relationship between the orientation of the display screen and the lighting direction, determine the projection of the elements in the user interface displayed on the display screen, and adjust the orientation of the display screen. The display style of elements in the user interface.
基于上述技术方案,通过以电子设备的显示屏的中心为原点建立在电子设备转动时固定不变的空间直角坐标系,确定电子设备围绕空间直角坐标系的任一坐标轴转动时显示屏的朝向,基于显示屏的朝向与电子设备当前地理位置对应的光照方向的关系,确定显示屏显示的用户界面中的元素的投影,调整显示屏显示的用户界面中的元素的显示样式,使得与用户的交互感更加紧密,提高用户体验。一种可能的设计中,所述方法还包括:确定所 述当前地理位置对应的风向信息;基于所述当前地理位置对应的风向信息,确定所述显示屏的朝向与风向的关系;基于所述显示屏的朝向与所述风向的关系,确定所述显示屏显示的用户界面中的元素的移动方向,调整所述显示屏显示的用户界面中的元素的显示样式。Based on the above technical solution, the orientation of the display screen when the electronic device rotates around any coordinate axis of the space rectangular coordinate system is determined by using the center of the display screen of the electronic device as the origin to establish a rectangular space coordinate system that is fixed when the electronic device rotates , based on the relationship between the orientation of the display screen and the lighting direction corresponding to the current geographical location of the electronic device, determine the projection of the elements in the user interface displayed by the display screen, and adjust the display style of the elements in the user interface displayed by the display screen so that the user's The sense of interaction is closer and the user experience is improved. In a possible design, the method further includes: determining wind direction information corresponding to the current geographic location; determining a relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location; The relationship between the orientation of the display screen and the wind direction determines the moving direction of elements in the user interface displayed on the display screen, and adjusts the display style of the elements in the user interface displayed on the display screen.
基于上述技术方案,基于显示屏的朝向与电子设备当前地理位置对应的风向的关系,确定显示屏显示的用户界面中的元素的移动方向,调整显示屏显示的用户界面中的元素的显示样式,使得与用户的交互感更加紧密,提高用户体验。一种可能的设计中,所述空间直角坐标系的横轴平行于所述显示屏的第一侧边,所述空间直角坐标系的纵轴平行于所述显示屏的第二侧边,所述空间直角坐标系的竖轴垂直于所述显示屏;所述第一侧边为平行于地平线的侧边,所述第二侧边为垂直于地平线的侧边。Based on the above technical solution, based on the relationship between the orientation of the display screen and the wind direction corresponding to the current geographical location of the electronic device, determine the moving direction of the elements in the user interface displayed on the display screen, and adjust the display style of the elements in the user interface displayed on the display screen, It makes the interaction with the user closer and improves the user experience. In a possible design, the horizontal axis of the spatial rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the spatial rectangular coordinate system is parallel to the second side of the display screen, so The vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is a side parallel to the horizon, and the second side is a side perpendicular to the horizon.
一种可能的设计中,所述光照信息包括不同时间对应的太阳的光照方向;所述风向信息包括不同时间对应的风向。In a possible design, the illumination information includes the illumination directions of the sun corresponding to different times; the wind direction information includes the wind directions corresponding to different times.
一种可能的设计中,基于所述显示屏的朝向与所述光照方向的关系,确定所述显示屏显示的用户界面中的元素的投影,包括:基于所述显示屏的朝向与所述光照方向的关系,确定所述电子设备的受光区域的中心点相对于所述显示屏的位置;基于所述电子设备的受光区域的中心点相对于所述显示屏的位置,确定所述显示屏显示的用户界面中的元素的投影。In a possible design, determining the projection of elements in the user interface displayed by the display screen based on the relationship between the orientation of the display screen and the illumination direction includes: based on the orientation of the display screen and the illumination direction. The position of the center point of the light-receiving area of the electronic device relative to the display screen is determined; based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, the display screen display is determined. A projection of elements in the user interface.
一种可能的设计中,基于所述电子设备的受光区域的中心点相对于所述显示屏的位置,确定所述显示屏显示的用户界面中的元素的投影,包括:In a possible design, based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, determining the projection of the elements in the user interface displayed on the display screen, including:
若所述电子设备的受光区域的中心点在所述显示屏的第一侧边的中心,或者,在所述显示屏平行于地平面时所述显示屏的正面,则所述显示屏显示的用户界面中的元素的投影与所述元素的外轮廓重合,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;If the center point of the light-receiving area of the electronic device is at the center of the first side of the display screen, or the front side of the display screen when the display screen is parallel to the ground plane, then the display screen displays The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the spatial Cartesian coordinate system;
若所述电子设备的受光区域的中心点在所述显示屏的第二侧边的中心,或者,在所述显示屏垂直于地平面时所述显示屏的正面或背面,则所述显示屏显示的用户界面中的元素的投影从所述元素的底部沿所述光照方向扩展延伸,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;If the center point of the light-receiving area of the electronic device is at the center of the second side of the display screen, or the front or back of the display screen when the display screen is perpendicular to the ground plane, the display screen is The projection of the element in the displayed user interface extends and extends along the illumination direction from the bottom of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system;
若所述电子设备的受光区域的中心点在所述显示屏的侧边上移动,则所述显示屏显示的用户界面中的元素的投影为光线照射所述元素的外轮廓时形成的形状,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面。If the center point of the light-receiving area of the electronic device moves on the side of the display screen, the projection of the element in the user interface displayed by the display screen is the shape formed when the light irradiates the outer contour of the element, The display plane on which the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
第二方面,本申请还提供一种电子设备,所述电子设备具有实现上述第一方面或者第一方面的任一种可能的设计中方法的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块,比如包括第一确定模块、第二确定模块、第三确定模块、第一调整模块。In a second aspect, the present application also provides an electronic device, the electronic device has a function of implementing the first aspect or any possible method in the design of the first aspect, and the function can be implemented by hardware or by The hardware executes the corresponding software implementation. The hardware or software includes one or more modules corresponding to the above functions, such as a first determination module, a second determination module, a third determination module, and a first adjustment module.
一种可能的设计中,所述第一确定模块,用于以电子设备的显示屏的中心为原点建立在所述电子设备转动时固定不变的空间直角坐标系,确定所述电子设备围绕所述空间直角坐标系的任一坐标轴转动时所述显示屏的朝向;In a possible design, the first determining module is used to establish a rectangular space coordinate system that is fixed when the electronic device rotates with the center of the display screen of the electronic device as the origin, and determine that the electronic device surrounds the The orientation of the display screen when any coordinate axis of the space rectangular coordinate system rotates;
一种可能的设计中,所述第二确定模块,用于获取所述电子设备当前地理位置,确定所述当前地理位置对应的光照信息或者风向信息;In a possible design, the second determining module is configured to acquire the current geographic location of the electronic device, and determine the illumination information or wind direction information corresponding to the current geographic location;
一种可能的设计中,所述第三确定模块,用于基于所述当前地理位置对应的光照信息,确定所述显示屏的朝向与光照方向关系或者风向信息,确定所述显示屏的朝向与光照方向 或风向的关系;In a possible design, the third determination module is configured to determine the relationship between the orientation of the display screen and the lighting direction or wind direction information based on the illumination information corresponding to the current geographic location, and determine the orientation of the display screen and the orientation of the display screen. The relationship between light direction or wind direction;
一种可能的设计中,所述第一调整模块,用于基于所述显示屏的朝向与所述光照方向的关系,确定所述显示屏显示的用户界面中的元素的投影,调整所述显示屏显示的用户界面中的元素的显示样式。In a possible design, the first adjustment module is configured to determine the projection of elements in the user interface displayed by the display screen based on the relationship between the orientation of the display screen and the lighting direction, and adjust the display. The display style of elements in the user interface displayed on the screen.
一种可能的设计中,所述电子设备还包括:In a possible design, the electronic device further includes:
第四确定模块,用于确定所述当前地理位置对应的风向信息;a fourth determining module, configured to determine wind direction information corresponding to the current geographic location;
第五确定模块,用于基于所述当前地理位置对应的风向信息,确定所述显示屏的朝向与风向的关系;a fifth determining module, configured to determine the relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location;
第二调整模块,用于基于所述显示屏的朝向与所述风向的关系,确定所述显示屏显示的用户界面中的元素的移动方向,调整所述显示屏显示的用户界面中的元素的显示样式。The second adjustment module is configured to, based on the relationship between the orientation of the display screen and the wind direction, determine the moving direction of the elements in the user interface displayed by the display screen, and adjust the movement direction of the elements in the user interface displayed by the display screen. Display style.
一种可能的设计中,所述空间直角坐标系的横轴平行于所述显示屏的第一侧边,所述空间直角坐标系的纵轴平行于所述显示屏的第二侧边,所述空间直角坐标系的竖轴垂直于所述显示屏;所述第一侧边为平行于地平线的侧边,所述第二侧边为垂直于地平线的侧边。In a possible design, the horizontal axis of the spatial rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the spatial rectangular coordinate system is parallel to the second side of the display screen, so The vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is a side parallel to the horizon, and the second side is a side perpendicular to the horizon.
一种可能的设计中,所述光照信息包括不同时间对应的太阳的光照方向;所述风向信息包括不同时间对应的风向。In a possible design, the illumination information includes the illumination directions of the sun corresponding to different times; the wind direction information includes the wind directions corresponding to different times.
一种可能的设计中,所述第一调整模块,具体用于:基于所述显示屏的朝向与所述光照方向的关系,确定所述电子设备的受光区域的中心点相对于所述显示屏的位置;基于所述电子设备的受光区域的中心点相对于所述显示屏的位置,确定所述显示屏显示的用户界面中的元素的投影。In a possible design, the first adjustment module is specifically configured to: determine the center point of the light-receiving area of the electronic device relative to the display screen based on the relationship between the orientation of the display screen and the lighting direction. position; based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, determine the projection of the element in the user interface displayed by the display screen.
一种可能的设计中,所述第一调整模块,具体用于:In a possible design, the first adjustment module is specifically used for:
若所述电子设备的受光区域的中心点在所述显示屏的第一侧边的中心,或者,在所述显示屏平行于地平面时所述显示屏的正面,则所述显示屏显示的用户界面中的元素的投影与所述元素的外轮廓重合,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;If the center point of the light-receiving area of the electronic device is at the center of the first side of the display screen, or the front side of the display screen when the display screen is parallel to the ground plane, then the display screen displays The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the spatial Cartesian coordinate system;
若所述电子设备的受光区域的中心点在所述显示屏的第二侧边的中心,或者,在所述显示屏垂直于地平面时所述显示屏的正面或背面,则所述显示屏显示的用户界面中的元素的投影从所述元素的底部沿所述光照方向扩展延伸,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面。If the center point of the light-receiving area of the electronic device is at the center of the second side of the display screen, or the front or back of the display screen when the display screen is perpendicular to the ground plane, the display screen is The projection of the element in the displayed user interface extends from the bottom of the element along the illumination direction, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
若所述电子设备的受光区域的中心点在所述显示屏的侧边上移动,则所述显示屏显示的用户界面中的元素的投影为光线照射所述元素的外轮廓时形成的形状,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面。If the center point of the light-receiving area of the electronic device moves on the side of the display screen, the projection of the element in the user interface displayed by the display screen is the shape formed when the light irradiates the outer contour of the element, The display plane on which the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
第三方面,本申请还提供一种计算机存储介质,所述计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述第一方面或者第一方面的任一种可能的设计中方法。In a third aspect, the present application further provides a computer storage medium, where the computer storage medium includes computer instructions, when the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the first aspect or the first aspect. Any possible in-design approach.
第四方面,本申请还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述第一方面或者第一方面的任一种可能的设计中方法。In a fourth aspect, the present application further provides a computer program product that, when the computer program product runs on a computer, causes the computer to execute the first aspect or any possible method in design of the first aspect.
附图说明Description of drawings
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图2为本申请实施例提供的一种界面显示方法的流程示意图;2 is a schematic flowchart of an interface display method provided by an embodiment of the present application;
图3a为本申请实施例提供的一种空间直角坐标系的示意图;3a is a schematic diagram of a space rectangular coordinate system provided by an embodiment of the application;
图3b为本申请实施例提供的一种电子设备围绕空间直角坐标系的任一坐标轴转动的示意图;3b is a schematic diagram of an electronic device rotating around any coordinate axis of a space rectangular coordinate system according to an embodiment of the application;
图3c为本申请实施例提供的一种光照信息的示意图;3c is a schematic diagram of illumination information provided by an embodiment of the present application;
图3d为本申请实施例提供的一种电子设备围绕空间直角坐标系的x轴转动的示意图;3d is a schematic diagram of an electronic device rotating around an x-axis of a space rectangular coordinate system according to an embodiment of the application;
图3e为本申请实施例提供的一种投影效果的示意图;3e is a schematic diagram of a projection effect provided by an embodiment of the present application;
图3f为本申请实施例提供的一种电子设备围绕空间直角坐标系的y轴转动的示意图;3f is a schematic diagram of an electronic device rotating around the y-axis of a space rectangular coordinate system according to an embodiment of the application;
图3g为本申请实施例提供的另一种投影效果的示意图;3g is a schematic diagram of another projection effect provided by an embodiment of the application;
图3h为本申请实施例提供的另一种电子设备围绕空间直角坐标系的y轴转动的示意图;3h is a schematic diagram of another electronic device rotating around the y-axis of a space rectangular coordinate system provided by an embodiment of the application;
图3i为本申请实施例提供的另一种投影效果的示意图;3i is a schematic diagram of another projection effect provided by an embodiment of the present application;
图3j为本申请实施例提供的一种电子设备围绕空间直角坐标系的z轴转动的示意图;3j is a schematic diagram of an electronic device rotating around the z-axis of a space rectangular coordinate system according to an embodiment of the application;
图3k为本申请实施例提供的另一种投影效果的示意图;3k is a schematic diagram of another projection effect provided by an embodiment of the present application;
图3l为本申请实施例提供的另一种电子设备围绕空间直角坐标系的z轴转动的示意图;31 is a schematic diagram of another electronic device rotating around the z-axis of a space rectangular coordinate system according to an embodiment of the application;
图3m为本申请实施例提供的另一种投影效果的示意图;3m is a schematic diagram of another projection effect provided by an embodiment of the application;
图3n为本申请实施例提供的一种雨滴的移动方向的示意图;3n is a schematic diagram of a movement direction of a raindrop provided by an embodiment of the present application;
图4为本申请实施例提供的另一种电子设备的结构示意图;FIG. 4 is a schematic structural diagram of another electronic device provided by an embodiment of the present application;
图5为本申请实施例提供的另一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
为便于理解本申请实施例,下面先对本申请实施例中涉及的专业术语进行解释说明。In order to facilitate understanding of the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained below first.
一、电子设备的显示屏的朝向1. The orientation of the display screen of electronic equipment
电子设备的显示屏的朝向指电子设备的显示屏面向的方向。The orientation of the display screen of the electronic device refers to the direction in which the display screen of the electronic device faces.
二、应用程序(application,app)2. Application (application, app)
应用程序简称应用,为能够实现某项或多项特定功能的软件程序。通常,电子设备中可以安装多个应用,例如,即时通讯类应用、视频类应用、音频类应用、图像拍摄类应用等等。其中,即时通信类应用,例如可以包括短信应用、畅连、微信(WeChat)、WhatsApp Messenger、连我(Line)、照片分享(Instagram)、Kakao Talk、钉钉等。图像拍摄类应用,例如可以包括相机应用(系统相机或第三方相机应用)。视频类应用,例如可以包括Youtube、Twitter、抖音、爱奇艺,腾讯视频等等。音频类应用,例如可以包括Google Music、酷狗音乐、虾米、QQ音乐等等。以下实施例中提到的应用,可以是电子设备出厂时已安装的应用,也可以是用户在使用电子设备的过程中从网络下载或其他电子设备获取的应用。An application program, referred to as an application, is a software program that can implement one or more specific functions. Generally, multiple applications may be installed in an electronic device, for example, instant messaging applications, video applications, audio applications, image capturing applications, and the like. Among them, instant messaging applications, for example, may include SMS applications, Changlian, WeChat (WeChat), WhatsApp Messenger, Line (Line), photo sharing (Instagram), Kakao Talk, DingTalk, and the like. Image capturing applications, for example, may include camera applications (system cameras or third-party camera applications). Video applications, for example, may include Youtube, Twitter, Douyin, iQiyi, Tencent Video, and so on. Audio applications, for example, may include Google Music, Kugou Music, Xiami, QQ Music, and so on. The applications mentioned in the following embodiments may be applications that have been installed when the electronic device leaves the factory, or may be applications downloaded by the user from the network or obtained from other electronic devices during the use of the electronic device.
现有的AOD渐变色时钟常基于当前地理位置对应的昼长信息,调整电子设备的显示屏显示的用户界面中的元素的颜色显示效果,具体的,在确定当前地理位置对应的昼长信息后,跟随日出到日落的时间变化,每间隔一定时间,变换预先设定的不同的渐变色值,调整电子设备的显示屏显示的用户界面中的元素的颜色显示效果。变换方式仍相对固定,同一时间及处于同一地理位置的用户现实看到的电子设备的显示屏显示的用户界面中的元素的显示样式是相同的。由此可见,现有的界面显示方法缺乏更紧密的与用户的交互感, 导致用户体验较差。The existing AOD gradient color clock often adjusts the color display effect of the elements in the user interface displayed on the display screen of the electronic device based on the day length information corresponding to the current geographical location. Specifically, after determining the day length information corresponding to the current geographical location , following the time change from sunrise to sunset, every certain time interval, change the preset different gradient color values, and adjust the color display effect of the elements in the user interface displayed on the display screen of the electronic device. The transformation method is still relatively fixed, and the display styles of elements in the user interface displayed on the display screen of the electronic device actually seen by the users at the same time and in the same geographical location are the same. It can be seen that the existing interface display method lacks a closer sense of interaction with the user, resulting in poor user experience.
鉴于此,本申请实施例中的电子设备基于电子设备围绕空间直角坐标系的任一坐标轴转动时电子设备的显示屏的朝向,实时调整电子设备的显示屏显示的用户界面中的元素的显示样式,增加与用户的交互感,提高用户体验。In view of this, the electronic device in the embodiments of the present application adjusts the display of elements in the user interface displayed by the display screen of the electronic device in real time based on the orientation of the display screen of the electronic device when the electronic device rotates around any coordinate axis of the space rectangular coordinate system Style, increase the sense of interaction with the user, and improve the user experience.
应理解,本申请实施例可以应用在多种电子设备中,电子设备可以是包含诸如个人数字助理和/或音乐播放器等功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2021115440-appb-000001
Figure PCTCN2021115440-appb-000002
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。
It should be understood that the embodiments of the present application may be applied to a variety of electronic devices, and the electronic devices may be portable electronic devices including functions such as personal digital assistants and/or music players, such as mobile phones, tablet computers, and wireless communication devices. Wearable devices (such as smart watches), etc. Exemplary embodiments of portable electronic devices include, but are not limited to, carry-on
Figure PCTCN2021115440-appb-000001
Figure PCTCN2021115440-appb-000002
Or portable electronic devices with other operating systems. The portable electronic device described above may also be other portable electronic devices, such as a laptop or the like having a touch-sensitive surface (eg, a touch panel). It should also be understood that, in some other embodiments of the present application, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer having a touch-sensitive surface (eg, a touch panel).
以下,首先对本申请实施例可以应用到的电子设备的结构进行简要说明,以便于本领域技术人员便于理解技术方案。示例性地,如图1所示,为本申请实施例提供的一种电子设备的结构示意图,图1所示的电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块151,无线通信模块152,定位模块160、音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中,传感器模块180可以包括陀螺仪传感器180A,加速度传感器180B,指纹传感器180H,温度传感器180J,触摸传感器180K,当然,电子设备100还可包括其他传感器比如压力传感器C、气压传感器D、磁传感器E、距离传感器F、接近光传感器G、环境光传感器I、骨传导传感器L等,图中未示出。Hereinafter, the structure of the electronic device to which the embodiments of the present application can be applied will be briefly described first, so as to facilitate the understanding of the technical solution by those skilled in the art. Exemplarily, as shown in FIG. 1 , which is a schematic structural diagram of an electronic device provided in an embodiment of the present application, the electronic device 100 shown in FIG. 1 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a general-purpose Universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 151, wireless communication module 152, positioning module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a gyro sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K. Of course, the electronic device 100 may also include other sensors such as a pressure sensor C, an air pressure sensor D, and a magnetic sensor E. , distance sensor F, proximity light sensor G, ambient light sensor I, bone conduction sensor L, etc., which are not shown in the figure.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
其中,处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), 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 (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold 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 called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
处理器110可以用于运行本申请实施例提供的界面显示方法的代码,实现界面显示过 程,具体过程将在后文介绍。The processor 110 may be configured to run the code of the interface display method provided by the embodiment of the present application, and realize the interface display process, and the specific process will be introduced later.
外部存储器接口120,用于将外部存储器和电子设备100连接,其中,外部存储器包括外置存储卡(SD存储卡)和NAS存储设备等,本申请实施例不限定。为了节省内部存储器121的存储空间,电子设备100也可以将用于执行界面显示方法的软件代码、纹理(即图片)等存储在外部存储器中。处理器110可以通过外部存储器接口120访问存储在外部存储器中的数据。The external memory interface 120 is used to connect the external memory with the electronic device 100, wherein the external memory includes an external memory card (SD memory card), a NAS storage device, etc., which is not limited in the embodiment of the present application. In order to save the storage space of the internal memory 121, the electronic device 100 may also store software codes, textures (ie, pictures), etc. for executing the interface display method in the external memory. The processor 110 may access data stored in the external memory through the external memory interface 120 .
内部存储器121,用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、应用程序(比如微信应用,相机应用等)的软件代码。存储数据区可存储电子设备100使用过程中所创建的个人数据(比如相机应用拍摄的图片、视频等)。The internal memory 121 is used for storing computer-executable program codes, where the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area may store software codes of operating systems and applications (such as WeChat applications, camera applications, etc.). The storage data area may store personal data created during the use of the electronic device 100 (such as pictures, videos, etc. taken by the camera application).
内部存储器121还可以存储用于执行界面显示方法的软件代码。当处理器110运行该代码时,实现界面显示过程的功能。内部存储器121还可以用于存储纹理(即图片)。The internal memory 121 may also store software codes for executing the interface display method. When the processor 110 runs the code, the function of the interface display process is realized. Internal memory 121 may also be used to store textures (ie, pictures).
此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
下面介绍传感器模块180的功能。The function of the sensor module 180 is described below.
陀螺仪传感器180A,可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180A确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。即陀螺仪传感器180A可以用于检测电子设备100当前的运动状态,比如抖动还是静止。The gyroscope sensor 180A can be used to determine the motion attitude of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180A. That is, the gyro sensor 180A can be used to detect the current motion state of the electronic device 100, such as shaking or stillness.
加速度传感器180B,可以用于检测电子设备100在各个方向上(一般为三轴)加速度的大小。即陀螺仪传感器180A可以用于检测电子设备100当前的运动状态,比如抖动还是静止。The acceleration sensor 180B can be used to detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). That is, the gyro sensor 180A can be used to detect the current motion state of the electronic device 100, such as shaking or stillness.
陀螺仪传感器180A(或加速度传感器180B)可以将检测到的运动状态信息(比如角速度)发送给处理器110。处理器110基于运动状态信息确定当前是手持状态还是脚架状态,比如,角速度不为0时,说明电子设备100处于手持状态。The gyro sensor 180A (or the acceleration sensor 180B) may send the detected motion state information (such as angular velocity) to the processor 110 . The processor 110 determines whether the current state is the hand-held state or the tripod state based on the motion state information. For example, when the angular velocity is not 0, it means that the electronic device 100 is in the hand-held state.
指纹传感器180H,可以用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H can be used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。 Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
摄像头193(前置摄像头或者后置摄像头,或者一个摄像头既可作为前置摄像头,也可作为后置摄像头)用于捕获静态图像或视频。通常,摄像头193可以包括感光元件比如镜头组和图像传感器,其中,镜头组包括多个透镜(凸透镜或凹透镜),用于采集待拍摄物体反射的光信号,并将采集的光信号传递给图像传感器。图像传感器根据所述光信号生成待拍摄物体的原始图像。Camera 193 (front camera or rear camera, or one camera can be both front camera and rear camera) is used to capture still images or video. Generally, the camera 193 may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex or concave) for collecting light signals reflected by the object to be photographed, and transmitting the collected light signals to the image sensor . The image sensor generates an original image of the object to be photographed according to the light signal.
显示屏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的正整数。The display screen 194 can be used to display images, videos, etc., for example, used to display the main interface, or the display interface of an application. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
以电子设备100的显示屏194显示主界面为例,主界面中包括多个应用的图标,比如相机应用、设置应用、微信应用、QQ应用等。触摸传感器180K可以检测用户在显示屏194上的触摸操作,并将该触摸操作发送给处理器110,处理器100基于该触摸操作,可以确定该触摸操作对应的图标,即确定出用户要点击的应用,比如用户通过触摸传感器180K点击主界面中相机应用的图标,触发处理器110启动相机应用,打开摄像头193,显示屏194显示相机应用的界面。Taking the display screen 194 of the electronic device 100 displaying the main interface as an example, the main interface includes icons of multiple applications, such as a camera application, a setting application, a WeChat application, a QQ application, and the like. The touch sensor 180K can detect the user's touch operation on the display screen 194, and send the touch operation to the processor 110. Based on the touch operation, the processor 100 can determine the icon corresponding to the touch operation, that is, determine the icon to be clicked by the user. For example, the user clicks the icon of the camera application in the main interface through the touch sensor 180K, triggers the processor 110 to start the camera application, turns on the camera 193, and the display screen 194 displays the interface of the camera application.
类似的,电子设备100还可以通过按键190接收输入操作,并将输入操作发送给处理器110,处理器110确定输入操作对应的图标。Similarly, the electronic device 100 may also receive an input operation through the key 190, and send the input operation to the processor 110, and the processor 110 determines an icon corresponding to the input operation.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块151,无线通信模块152,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块151可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块151可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块151可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块151还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块151的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块151的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 151 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 100 . The mobile communication module 151 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 151 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 151 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 151 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 151 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块151或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, 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. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 151 or other functional modules.
无线通信模块152可以提供应用在电子设备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)等无线通信的解决方案。无线通信模块152可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块152经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块152还可以从处理器110接收待发送的 信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 152 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 152 may be one or more devices integrating at least one communication processing module. The wireless communication module 152 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 152 can also receive the signal to be sent from the processor 110, perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
另外,电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。电子设备100可以接收按键190输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。电子设备100可以利用马达191产生振动提示,比如来电振动提示。电子设备100中的指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。电子设备100中的SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。In addition, the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc. The electronic device 100 may receive the key 190 input and generate key signal input related to user settings and function control of the electronic device 100 . The electronic device 100 may use the motor 191 to generate a vibration alert, such as a vibration alert for an incoming call. The indicator 192 in the electronic device 100 may be an indicator light, which may be used to indicate a charging state, a change in power, and may also be used to indicate a message, a missed call, a notification, and the like. The SIM card interface 195 in the electronic device 100 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
电子设备100可以通过定位模块160实现定位电子设备100当前的地理位置的功能。定位模块160所采用的定位方法可以是GPS、基站,WiFi热点,蓝牙(iBacon),辅助GPS(assisted GPS,AGPS)等一种或多种方法定位。The electronic device 100 may implement the function of locating the current geographic location of the electronic device 100 through the positioning module 160 . The positioning method adopted by the positioning module 160 may be one or more positioning methods such as GPS, base station, WiFi hotspot, Bluetooth (iBacon), assisted GPS (assisted GPS, AGPS).
应理解,在实际应用中,电子设备100可以包括比图1所示的更多或更少的部件,本申请实施例不作限定。It should be understood that, in practical applications, the electronic device 100 may include more or less components than those shown in FIG. 1 , which are not limited in the embodiments of the present application.
以上介绍了本申请实施例提供的电子设备,接下来结合附图介绍本申请实施例提供的界面显示方法。The electronic equipment provided by the embodiments of the present application has been described above, and the following describes the interface display method provided by the embodiments of the present application with reference to the accompanying drawings.
应理解,本申请实施例中的术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a和b和c。It should be understood that the terms "first" and "second" in the embodiments of the present application are only used for description purposes, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. "At least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b, or c may represent: a, b, c, a and b, a and c, b and c, or a and b and c.
如图2所示,为本申请实施例提供的一种界面显示方法的流程示意图,该界面显示方法可以应用于上述图1所示的或者与图1功能结构类似的电子设备上,即该界面显示方法可由电子设备中的各个硬件部分结合相应的软件程序来执行。该界面显示方法的具体流程描述如下。As shown in FIG. 2, it is a schematic flowchart of an interface display method provided by an embodiment of the present application. The interface display method can be applied to the electronic device shown in the above-mentioned FIG. 1 or with a similar functional structure to that of FIG. 1, that is, the interface The display method can be performed by various hardware parts in the electronic device in combination with corresponding software programs. The specific flow of the interface display method is described as follows.
S201、以电子设备的显示屏的中心为原点建立在电子设备转动时固定不变的空间直角坐标系,确定电子设备围绕空间直角坐标系的任一坐标轴转动时电子设备的显示屏的朝向。S201 , establishing a spatial rectangular coordinate system that is fixed when the electronic device rotates with the center of the display screen of the electronic device as the origin, and determining the orientation of the display screen of the electronic device when the electronic device rotates around any coordinate axis of the spatial rectangular coordinate system.
在一些实施例中,如图3a所示,可以设定电子设备的显示屏的任意一条侧边水平于地平线,另一条侧边垂直于地平线,以电子设备的显示屏的中心为空间直角坐标系的原点建立在电子设备转动时固定不变的空间直角坐标系,即该空间直角坐标系在该电子设备转动时不发生变化,其中,该空间直角坐标系的横轴(x轴)平行于电子设备的显示屏的第一侧边,第一侧边为电子设备的显示屏平行于地平线的侧边,该空间直角坐标系的纵轴(y轴)平行于电子设备的显示屏的第二侧边,第二侧边为电子设备的显示屏垂直于地平线的侧边,该空间直角坐标系的竖轴(z轴)垂直于电子设备的显示屏所在平面。In some embodiments, as shown in FIG. 3a, any one side of the display screen of the electronic device can be set to be horizontal to the horizon, and the other side can be set to be perpendicular to the horizon, and the center of the display screen of the electronic device can be set as the space rectangular coordinate system The origin is established in the space rectangular coordinate system that is fixed when the electronic equipment rotates, that is, the space rectangular coordinate system does not change when the electronic equipment rotates, wherein the horizontal axis (x axis) of the space rectangular coordinate system is parallel to the electronic equipment. The first side of the display screen of the device, the first side is the side of the display screen of the electronic device that is parallel to the horizon, and the vertical axis (y-axis) of the spatial Cartesian coordinate system is parallel to the second side of the display screen of the electronic device The second side is the side of the display screen of the electronic device perpendicular to the horizon, and the vertical axis (z-axis) of the space rectangular coordinate system is perpendicular to the plane where the display screen of the electronic device is located.
在另一些实施例中,如图3b所示,电子设备可以围绕上述建立的空间直角坐标系的任一坐标轴转动,例如,围绕上述建立的空间直角坐标系的x轴、y轴或z轴转动,可以顺时针转动,也可以逆时针转动,本申请实施例对此不做具体限定。电子设备围绕上述建 立的空间直角坐标系的任一坐标轴转动时,可以通过电子设备中的陀螺仪传感器或者加速度传感器确定电子设备围绕该空间直角坐标系的任一坐标轴转动时电子设备的显示屏的朝向。In other embodiments, as shown in FIG. 3b, the electronic device can be rotated around any coordinate axis of the above-established spatial rectangular coordinate system, for example, around the x-axis, y-axis or z-axis of the above-established spatial rectangular coordinate system The rotation may be clockwise or counterclockwise, which is not specifically limited in this embodiment of the present application. When the electronic device rotates around any coordinate axis of the space rectangular coordinate system established above, the display of the electronic device when the electronic device rotates around any coordinate axis of the space rectangular coordinate system can be determined by the gyroscope sensor or acceleration sensor in the electronic device. orientation of the screen.
需要说明的是,本申请实施例中,电子设备中的陀螺仪传感器可以通过确定电子设备围绕该空间直角坐标系的三个坐标轴转动的角速度,并将检测到的角速度发送给电子设备中的处理器,使得处理器可以基于角速度确定当前电子设备的显示屏的朝向,以及确定当前电子设备是手持状态还是脚架状态,例如,若电子设备围绕该空间直角坐标系的x轴转动的角速度不为0,围绕该空间直角坐标系的y轴和z轴转动的角速度为0,则确定当前电子设备在围绕该空间直角坐标系的x轴转动,进一步地基于当前电子设备在围绕该空间直角坐标系的x轴转动时的角速度的大小和方向确定当前电子设备的显示屏的朝向。It should be noted that, in this embodiment of the present application, the gyroscope sensor in the electronic device can determine the angular velocity of the electronic device rotating around the three coordinate axes of the space rectangular coordinate system, and send the detected angular velocity to the electronic device. The processor enables the processor to determine the current orientation of the display screen of the electronic device based on the angular velocity, and to determine whether the current electronic device is in a handheld state or a tripod state. is 0, the angular velocity of the rotation around the y-axis and the z-axis of the space rectangular coordinate system is 0, then it is determined that the current electronic device is rotating around the x-axis of the space rectangular coordinate system, and further based on the current electronic device is rotating around the space rectangular coordinate system. The magnitude and direction of the angular velocity when the x-axis of the system rotates determine the current orientation of the display screen of the electronic device.
需要说明的是,本申请实施例中,电子设备中的加速度传感器可以通过确定电子设备在该空间直角坐标系的三个坐标轴上的加速度,将检测到的加速度发送给电子设备中的处理器,使得处理器可以基于加速度确定当前电子设备的显示屏的朝向,例如,基于电子设备分别在该空间直角坐标系的x轴、y轴和z轴上的加速度的大小确定电子设备的运动加速度,进一步地基于电子设备的运动加速度的大小和方向确定当前电子设备的显示屏的朝向。It should be noted that, in the embodiment of the present application, the acceleration sensor in the electronic device can send the detected acceleration to the processor in the electronic device by determining the acceleration of the electronic device on the three coordinate axes of the space rectangular coordinate system , so that the processor can determine the orientation of the display screen of the current electronic device based on the acceleration, for example, determine the motion acceleration of the electronic device based on the magnitude of the acceleration of the electronic device on the x-axis, y-axis and z-axis of the space rectangular coordinate system, respectively, The current orientation of the display screen of the electronic device is further determined based on the magnitude and direction of the motion acceleration of the electronic device.
S202、获取电子设备当前地理位置,确定当前地理位置对应的光照信息或者风向信息。S202: Acquire the current geographic location of the electronic device, and determine illumination information or wind direction information corresponding to the current geographic location.
在一些实施例中,可以通过电子设备中的定位模块获取电子设备当前的地理位置,其中,定位模块所采用的定位方法可以是GPS、基站,WiFi热点,iBacon,辅助GPS(assisted GPS,AGPS)等一种或多种方法定位,本申请实施例对此不做具体限定。In some embodiments, the current geographic location of the electronic device may be obtained through a positioning module in the electronic device, wherein the positioning method used by the positioning module may be GPS, base station, WiFi hotspot, iBacon, assisted GPS (assisted GPS, AGPS) One or more methods, such as positioning, are not specifically limited in this embodiment of the present application.
在另一些实施例中,获取电子设备当前地理位置之后,可以确定当前地理位置对应的光照信息,其中,光照信息包括物理世界中一天的不同时间对应的太阳的光照方向,如图3c所示,以6:00为日出时间,18:00为日落时间为例,6:00时太阳一般处于东部方向,光照方向从东向西,12:00时太阳一般处于一天时间中高度正中间,光照方向垂直向下,18:00时太阳一般处于西部方向,光照方向从西向东。或者,还可以确定当前地理位置对应的风向信息,其中,天气风向信息包括物理世界中一天的不同时间对应的风向,如东北风,东南风。S203、基于当前地理位置对应的光照信息确定电子设备的显示屏的朝向与光照方向的关系,或者,基于当前地理位置对应的风向信息,确定电子设备的显示屏的朝向与风向的关系。In other embodiments, after obtaining the current geographic location of the electronic device, illumination information corresponding to the current geographic location may be determined, wherein the illumination information includes the illumination directions of the sun corresponding to different times of the day in the physical world, as shown in FIG. 3c , Take 6:00 as the sunrise time and 18:00 as the sunset time as an example. At 6:00, the sun is generally in the east direction, and the light direction is from east to west. At 12:00, the sun is generally in the middle of the height of the day. The direction is vertically downward, the sun is generally in the west direction at 18:00, and the light direction is from west to east. Alternatively, wind direction information corresponding to the current geographic location may also be determined, wherein the weather wind direction information includes wind directions corresponding to different times of the day in the physical world, such as northeasterly wind and southeasterly wind. S203. Determine the relationship between the orientation of the display screen of the electronic device and the lighting direction based on the illumination information corresponding to the current geographic location, or determine the relationship between the orientation and the wind direction of the display screen of the electronic device based on the wind direction information corresponding to the current geographic location.
在一些实施例中,可以基于当前地理位置对应的光照信息,确定当前时间对应的太阳的光照方向,进而确定电子设备的显示屏的当前朝向与光照方向的关系,例如,以时间18:00为例,此时太阳一般处于西部方向,光照方向为从西侧向东侧,若此时电子设备的显示屏垂直于地平面,且电子设备的显示屏的正面朝南,进而确定电子设备的显示屏的朝向与光照方向关系。还可以基于当前地理位置对应的风向信息,确定当前时间对应的风向,进而确定电子设备的显示屏的当前朝向与风向的关系。In some embodiments, the illumination direction of the sun corresponding to the current time may be determined based on illumination information corresponding to the current geographic location, and then the relationship between the current orientation of the display screen of the electronic device and the illumination direction may be determined, for example, the time 18:00 is For example, at this time, the sun is generally in the west direction, and the illumination direction is from the west side to the east side. If the display screen of the electronic device is perpendicular to the ground plane at this time, and the front side of the display screen of the electronic device is facing south, then the display of the electronic device is determined. The orientation of the screen is related to the direction of light. The wind direction corresponding to the current time can also be determined based on the wind direction information corresponding to the current geographic location, and then the relationship between the current orientation of the display screen of the electronic device and the wind direction can be determined.
S204、基于电子设备的显示屏的朝向与光照方向的关系,确定显示屏显示的用户界面中的元素的投影,调整电子设备的显示屏显示的用户界面中的元素的显示样式,或者,基于电子设备的显示屏的朝向与风向的关系,确定显示屏显示的用户界面中的元素的移动方向,调整电子设备的显示屏显示的用户界面中的元素的显示样式。S204. Based on the relationship between the orientation of the display screen of the electronic device and the lighting direction, determine the projection of the elements in the user interface displayed by the display screen, adjust the display style of the elements in the user interface displayed by the display screen of the electronic device, or, based on the electronic device The relationship between the orientation of the display screen of the device and the wind direction determines the moving direction of elements in the user interface displayed on the display screen, and adjusts the display style of the elements in the user interface displayed on the display screen of the electronic device.
在一些实施例中,在调整电子设备的显示屏显示的用户界面中的元素的显示样式之前,电子设备可以基于电子设备中的触摸传感器检测到的用户在触摸传感器与显示屏组成的触摸屏上的触摸操作,确定用户要点击的应用,并在显示屏上显示该应用的相关信息,例如,当电子设备中的触摸传感器检测到用户在触摸屏上的触摸操作后,将该触摸操作发送给电子设备中的处理器,处理器基于该触摸操作可以确定该触摸操作对应的图标,即确定出用户要点击的应用。假设处理器基于触摸操作确定用户点击时钟应用,则电子设备的显示屏显示的用户界面中的元素为当前时间,如“12:00”、“18:00”等,假设处理器基于触摸操作确定用户点击天气应用,则电子设备的显示屏显示的用户界面中的元素为当前天气,如云、雾、雨、雪等,即电子设备的显示屏显示的用户界面中的元素可以为时间,如“12:00”、“18:00”等,可以为天气,如云、雾、雨、雪等,也可以为时间和天气的结合,本申请实施例不做限定。In some embodiments, before adjusting the display style of the elements in the user interface displayed by the display screen of the electronic device, the electronic device may be based on the user's behavior on the touch screen composed of the touch sensor and the display screen detected by the touch sensor in the electronic device. Touch operation, determine the application that the user wants to click, and display the relevant information of the application on the display screen. For example, when the touch sensor in the electronic device detects the user's touch operation on the touch screen, the touch operation is sent to the electronic device. The processor in the , based on the touch operation, the processor can determine the icon corresponding to the touch operation, that is, the application to be clicked by the user. Assuming that the processor determines that the user clicks on the clock application based on the touch operation, the elements in the user interface displayed on the display screen of the electronic device are the current time, such as "12:00", "18:00", etc. It is assumed that the processor determines based on the touch operation When the user clicks on the weather application, the elements in the user interface displayed on the display screen of the electronic device are the current weather, such as clouds, fog, rain, snow, etc., that is, the elements in the user interface displayed on the display screen of the electronic device can be time, such as time. "12:00", "18:00", etc., can be weather, such as clouds, fog, rain, snow, etc., or a combination of time and weather, which is not limited in the embodiment of the present application.
在另一些实施例中,在确定电子设备的显示屏显示的用户界面中的元素之后,可以基于电子设备的显示屏的朝向与光照方向的关系,确定显示屏显示的用户界面中的元素的投影,调整电子设备的显示屏显示的用户界面中的元素的显示样式光照信息,例如,调整电子设备的显示屏显示的用户界面中的时间的受光和投影,或者,基于电子设备的显示屏的朝向与风向的关系,确定显示屏显示的用户界面中的元素的移动方向,调整电子设备的显示屏显示的用户界面中的元素的显示样式,例如,调整电子设备的显示屏显示的用户界面中的雨滴的移动方向。In other embodiments, after determining the elements in the user interface displayed by the display screen of the electronic device, the projection of the elements in the user interface displayed by the display screen may be determined based on the relationship between the orientation of the display screen of the electronic device and the lighting direction , adjusting the display style and lighting information of elements in the user interface displayed by the display screen of the electronic device, for example, adjusting the light reception and projection of the time in the user interface displayed by the display screen of the electronic device, or, based on the orientation of the display screen of the electronic device The relationship with the wind direction, determining the moving direction of elements in the user interface displayed on the display screen, and adjusting the display style of the elements in the user interface displayed on the display screen of the electronic device, for example, adjusting the user interface displayed on the display screen of the electronic device. Movement direction of raindrops.
在步骤204中,可以通过两种方式调整电子设备的显示屏显示的用户界面中的元素的显示样式。例如,当电子设备围绕空间直角坐标系的任一坐标轴转动,电子设备的显示屏的朝向发生变化时,可以基于当前地理位置对应的光照信息,确定不断变化的电子设备的显示屏的朝向与光照方向的关系,基于不断变化的电子设备的显示屏的朝向与光照方向的关系,确定不断变化的显示屏显示的用户界面中的元素的投影,调整电子设备的显示屏显示的用户界面中的元素的显示样式,如元素的受光和投影。或者,当电子设备围绕空间直角坐标系的任一坐标轴转动,电子设备的显示屏的朝向发生变化时,可以基于当前地理位置对应的风向信息,确定不断变化的电子设备的显示屏的朝向与风向的关系,基于不断变化的电子设备的显示屏的朝向与风向的关系,确定不断变化的显示屏显示的用户界面中的元素的移动方向,调整电子设备的显示屏显示的用户界面中的元素的显示样式,如元素的移动方向。以下结合具体的实例分别对两种方式的具体实现进行详细的描述。In step 204, the display styles of elements in the user interface displayed on the display screen of the electronic device may be adjusted in two ways. For example, when the electronic device rotates around any coordinate axis of the space rectangular coordinate system and the orientation of the display screen of the electronic device changes, it can be determined based on the illumination information corresponding to the current geographic location that the orientation of the display screen of the electronic device is constantly changing. The relationship between the lighting direction, based on the relationship between the orientation of the display screen of the electronic device and the lighting direction, determine the projection of the elements in the user interface displayed by the display screen that is constantly changing, and adjust the user interface displayed by the display screen of the electronic device. The display style of the element, such as the element's lighting and shadowing. Or, when the electronic device rotates around any coordinate axis of the space rectangular coordinate system, and the orientation of the display screen of the electronic device changes, it can be determined based on the wind direction information corresponding to the current geographical location that the orientation of the display screen of the electronic device is constantly changing. The relationship of wind direction, based on the relationship between the changing orientation of the display screen of the electronic device and the wind direction, determine the moving direction of the elements in the user interface displayed by the constantly changing display screen, and adjust the elements in the user interface displayed by the display screen of the electronic device The display style of the element, such as the moving direction of the element. The specific implementations of the two manners are described in detail below with reference to specific examples.
方式一,若电子设备的显示屏显示的用户界面中的元素为时间,以电子设备的显示屏的中心为原点建立空间直角坐标系后,当电子设备围绕空间直角坐标系的任一坐标轴转动,电子设备的显示屏的朝向发生变化时,实时结合当前地理位置对应的光照信息,确定电子设备的显示屏当前朝向与光照方向的关系,基于电子设备的显示屏当前朝向与光照方向的关系,确定当前显示屏显示的用户界面中的时间的投影,调整电子设备的显示屏显示的用户界面中的时间的受光和投影。 Method 1, if the element in the user interface displayed by the display screen of the electronic device is time, after establishing a rectangular space coordinate system with the center of the display screen of the electronic device as the origin, when the electronic device rotates around any coordinate axis of the rectangular space coordinate system , when the orientation of the display screen of the electronic device changes, the relationship between the current orientation of the display screen of the electronic device and the lighting direction is determined in real time in combination with the lighting information corresponding to the current geographical location, and based on the relationship between the current orientation of the display screen of the electronic device and the lighting direction, The projection of the time in the user interface displayed on the current display screen is determined, and the light reception and projection of the time in the user interface displayed by the display screen of the electronic device are adjusted.
(1)若电子设备的受光区域的中心点在显示屏的第一侧边的中心,第一侧边为电子设备的显示屏平行于地平线的侧边,或者,在显示屏平行于地平面时显示屏的正面,则显示屏显示的用户界面中的元素的投影与元素的外轮廓重合,投影所在的显示平面平行于空间直角坐标系的横轴与竖轴形成的平面。(1) If the center point of the light-receiving area of the electronic device is at the center of the first side of the display screen, the first side is the side of the display screen of the electronic device that is parallel to the horizon, or, when the display screen is parallel to the ground plane The front of the display screen, the projection of the element in the user interface displayed by the display screen coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
示例性地,如图3d所示,以时间12:00为例,设定上述建立的空间直角坐标系的x轴 对齐东西水平方向,空间直角坐标系的y轴和z轴分别垂直于东西水平方向。此时太阳一般处于一天时间中高度正中间,光照方向垂直向下,电子设备的受光区域的中心点为A1,则可以确定此时电子设备的显示屏显示的用户界面中的元素“12:00”顶部受光较多,顶部明度较高,低部受光较少,低部明度较低。当电子设备围绕上述建立的空间直角坐标系的x轴转动时,电子设备的受光区域的中心点从A1移动到了A2,若转动后电子设备的显示屏正面朝上,则可以确定此时电子设备的显示屏显示的用户界面中的元素“12:00”中部受光较多,中部明度较高;若转动后电子设备的显示屏背面朝上,则可以确定此时电子设备的显示屏显示的用户界面中的元素“12:00”未受光,明度较低。Illustratively, as shown in Figure 3d, taking time 12:00 as an example, it is set that the x-axis of the above-established spatial rectangular coordinate system is aligned with the east-west horizontal direction, and the y-axis and z-axis of the spatial rectangular coordinate system are respectively perpendicular to the east-west horizontal direction. direction. At this time, the sun is generally in the middle of the height of the day, the direction of illumination is vertically downward, and the center point of the light-receiving area of the electronic device is A1, it can be determined that the element "12:00" in the user interface displayed on the display screen of the electronic device at this time is "The top receives more light, the top is brighter, the bottom receives less light, and the bottom is low. When the electronic device rotates around the x-axis of the space rectangular coordinate system established above, the center point of the light-receiving area of the electronic device moves from A1 to A2. The element "12:00" in the user interface displayed on the display screen of the electronic device receives more light in the middle, and the brightness in the middle is higher; if the back of the display screen of the electronic device is turned up, it can be determined that the user displayed on the display screen of the electronic device at this time The element "12:00" in the interface is not illuminated and has low brightness.
需要说明的是,本申请实施例中,当电子设备的显示屏显示的用户界面中的元素受光时,参照物理世界中的物体受到同样方向的光照时呈现的投影效果,电子设备的显示屏显示的用户界面中的元素也会呈现类似的投影效果。It should be noted that, in the embodiment of the present application, when the elements in the user interface displayed on the display screen of the electronic device are exposed to light, the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
示例性地,如图3e所示,当电子设备的受光区域的中心点为A1时,电子设备的显示屏显示的用户界面中的元素“12:00”顶部受光较多,顶部明度较高,低部受光较少,低部明度较低,则参照物理世界中的物体中午时刻受到太阳光线照射形成的投影,电子设备的显示屏显示的用户界面中的元素“12:00”的投影与元素“12:00”外轮廓重合,显示在元素“12:00”底部,即投影所在的显示平面平行于空间直角坐标系的xz平面;Exemplarily, as shown in FIG. 3e, when the center point of the light-receiving area of the electronic device is A1, the top of the element "12:00" in the user interface displayed on the display screen of the electronic device receives more light, and the top has a higher brightness. The lower part receives less light, and the lower part has lower brightness. Referring to the projection formed by the object in the physical world exposed to sunlight at noon, the projection of the element "12:00" in the user interface displayed on the display screen of the electronic device and the element The outer contour of "12:00" coincides and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
当电子设备绕上述建立的空间直角坐标系的x轴转动时,电子设备的受光区域的中心点从A1移动到了A2,若转动后电子设备的显示屏正面朝上,电子设备的显示屏显示的用户界面中的元素“12:00”中部受光较多,中部明度较高,则参照物理世界中的物体中午时刻受到太阳光线照射形成的投影,电子设备的显示屏显示的用户界面中的元素“12:00”的投影与元素“12:00”外轮廓重合,显示在元素“12:00”底部,即投影所在的显示平面平行于空间直角坐标系的xz平面;When the electronic device rotates around the x-axis of the space rectangular coordinate system established above, the center point of the light-receiving area of the electronic device moves from A1 to A2. The element "12:00" in the user interface receives more light in the middle, and the brightness in the middle is higher, then refer to the projection formed by the object in the physical world exposed to sunlight at noon, and the display screen of the electronic device displays the element in the user interface " The projection of 12:00" coincides with the outer contour of the element "12:00" and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
当电子设备绕上述建立的空间直角坐标系的x轴转动时,电子设备的受光区域的中心点从A1移动到了A2,若转动后电子设备的显示屏背面朝上,电子设备的显示屏显示的用户界面中的元素“12:00”未受光,明度较低,则参照物理世界中的物体中午时刻受到太阳光线照射形成的投影,电子设备的显示屏显示的用户界面中的元素“12:00”的边缘产生逆光发光效果。When the electronic device rotates around the x-axis of the space rectangular coordinate system established above, the center point of the light-receiving area of the electronic device moves from A1 to A2. The element "12:00" in the user interface is not exposed to light and the brightness is low. Referring to the projection formed by the object in the physical world exposed to sunlight at noon, the display screen of the electronic device displays the element "12:00" in the user interface. ” produces a backlit glow effect.
(2)若电子设备的受光区域的中心点在显示屏的第二侧边的中心,第二侧边为电子设备的显示屏垂直于地平线的侧边,或者,在显示屏垂直于地平面时所述显示屏的正面或背面,则所述显示屏显示的用户界面中的元素的投影从所述元素的底部沿所述光照方向扩展延伸,投影所在的显示平面平行于空间直角坐标系的横轴与竖轴形成的平面。(2) If the center of the light-receiving area of the electronic device is at the center of the second side of the display screen, the second side is the side of the display screen of the electronic device that is perpendicular to the horizon, or, when the display screen is perpendicular to the ground plane The front or back of the display screen, the projection of the element in the user interface displayed by the display screen extends and extends along the illumination direction from the bottom of the element, and the display plane where the projection is located is parallel to the horizontal direction of the spatial Cartesian coordinate system. The plane formed by the axis and the vertical axis.
示例性地,如图3f所示,以时间18:00为例,设定上述建立的空间直角坐标系的x轴对齐东西水平方向,空间直角坐标系的y轴和z轴分别垂直于东西水平方向。此时太阳一般处于西部方向,光照方向从西向东,电子设备的受光区域的中心点为A1,则可以确定此时电子设备的显示屏显示的用户界面中的元素“18:00”西侧受光较多,西侧明度较高,东侧受光较少,东侧明度较低。当电子设备绕上述建立的空间直角坐标系的y轴转动时,若转动后电子设备的显示屏正面朝东,电子设备的受光区域的中心点从A1移动到了A2,则可以确定此时电子设备的显示屏显示的用户界面中的元素“18:00”未受光,明度较低。Illustratively, as shown in Figure 3f, taking time 18:00 as an example, it is assumed that the x-axis of the above-established spatial rectangular coordinate system is aligned with the east-west horizontal direction, and the y-axis and z-axis of the spatial rectangular coordinate system are respectively perpendicular to the east-west horizontal direction. direction. At this time, the sun is generally in the west direction, the illumination direction is from west to east, and the center point of the light-receiving area of the electronic device is A1, it can be determined that the element "18:00" in the user interface displayed on the display screen of the electronic device at this time receives light on the west side. More, the west side has higher brightness, the east side receives less light, and the east side has lower brightness. When the electronic device rotates around the y-axis of the space rectangular coordinate system established above, if the display screen of the electronic device faces east after the rotation, and the center point of the light-receiving area of the electronic device moves from A1 to A2, it can be determined that the electronic device at this time 's display shows that the element "18:00" in the user interface is not illuminated and has low brightness.
需要说明的是,本申请实施例中,当电子设备的显示屏显示的用户界面中的元素受光时,参照物理世界中的物体受到同样方向的光照时呈现的投影效果,电子设备的显示屏显 示的用户界面中的元素也会呈现类似的投影效果。It should be noted that, in the embodiment of the present application, when the elements in the user interface displayed on the display screen of the electronic device are exposed to light, the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
示例性地,如图3g所示,当电子设备的受光区域的中心点为A1时,电子设备的显示屏显示的用户界面中的元素“18:00”西侧受光较多,西侧明度较高,东侧受光较少,东侧明度较低,则参照物理世界中的物体日落时刻受到太阳光线照射形成的投影,太阳光线从元素西侧向东侧照射,电子设备的显示屏显示的用户界面中的元素“18:00”的投影从元素“18:00”底部西侧向东侧方向扩展延伸,向东位移距离长;Exemplarily, as shown in Fig. 3g, when the center point of the light-receiving area of the electronic device is A1, the element "18:00" in the user interface displayed on the display screen of the electronic device receives more light on the west side, and the brightness on the west side is higher. High, the east side receives less light, and the east side has low brightness, then refer to the projection of objects in the physical world that are irradiated by the sun's rays at sunset. The projection of the element "18:00" in the interface extends from the west side of the bottom of the element "18:00" to the east side, and the eastward displacement distance is long;
当电子设备绕上述建立的空间直角坐标系的y轴转动时,若转动后电子设备的显示屏正面朝东,电子设备的受光区域的中心点从A1移动到了A2,电子设备的显示屏显示的用户界面中的元素“18:00”未受光,明度较低,则参照物理世界中的物体日落时刻受到太阳光线照射形成的投影,太阳光线从元素背面照射,电子设备的显示屏显示的用户界面中的元素“18:00”的投影从元素“18:00”底部西侧向东侧方向扩展延伸,显示在元素“18:00”底部,即电子设备的显示屏显示的用户界面中的元素“18:00”的投影自元素“18:00”底部向前方扩散延伸,投影所在的显示平面平行于空间直角坐标系的xz平面。或者,示例性地,如图3h所示,以时间18:00为例,设定上述建立的空间直角坐标系的x轴对齐东西水平方向,空间直角坐标系的y轴和z轴分别垂直于东西水平方向。此时太阳一般处于西部方向,光照方向从西向东,电子设备的受光区域的中心点为A1,则可以确定此时电子设备的显示屏显示的用户界面中的元素“18:00”西侧受光较多,西侧明度较高,东侧受光较少,东侧明度较低。当电子设备绕上述建立的空间直角坐标系的y轴转动时,若转动后电子设备的显示屏正面朝西,电子设备的受光区域的中心点从A1移动到了A3,则可以确定此时电子设备的显示屏显示的用户界面中的元素“18:00”中部受光,中部明度较高。When the electronic device rotates around the y-axis of the space rectangular coordinate system established above, if the display screen of the electronic device faces east after the rotation, the center point of the light-receiving area of the electronic device moves from A1 to A2, and the display screen of the electronic device displays The element "18:00" in the user interface is not exposed to light and the brightness is low. Refer to the projection formed by the object in the physical world when it is illuminated by the sun's rays at sunset. The sun's rays are illuminated from the back of the element, and the user interface displayed on the display screen of the electronic device The projection of the element "18:00" in the element "18:00" extends from the west to the east at the bottom of the element "18:00", and is displayed at the bottom of the element "18:00", that is, the element in the user interface displayed by the display screen of the electronic device The projection of "18:00" spreads forward from the bottom of the element "18:00", and the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system. Or, exemplarily, as shown in Fig. 3h, taking time 18:00 as an example, it is assumed that the x-axis of the above-established spatial rectangular coordinate system is aligned with the east-west horizontal direction, and the y-axis and z-axis of the spatial rectangular coordinate system are respectively perpendicular to East-West horizontal orientation. At this time, the sun is generally in the west direction, the illumination direction is from west to east, and the center point of the light-receiving area of the electronic device is A1, it can be determined that the element "18:00" in the user interface displayed on the display screen of the electronic device at this time receives light on the west side. More, the west side has higher brightness, the east side receives less light, and the east side has lower brightness. When the electronic device rotates around the y-axis of the space rectangular coordinate system established above, if the display screen of the electronic device faces west after the rotation, and the center point of the light-receiving area of the electronic device moves from A1 to A3, it can be determined that the electronic device at this time The element "18:00" in the user interface displayed on the display screen of , receives light in the middle, and has a higher brightness in the middle.
需要说明的是,本申请实施例中,当电子设备的显示屏显示的用户界面中的元素受光时,参照物理世界中的物体受到同样方向的光照时呈现的投影效果,电子设备的显示屏显示的用户界面中的元素也会呈现类似的投影效果。It should be noted that, in the embodiment of the present application, when the elements in the user interface displayed on the display screen of the electronic device are exposed to light, the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
示例性地,如图3i所示,当电子设备的受光区域的中心点为A1时,电子设备的显示屏显示的用户界面中的元素“18:00”西侧受光较多,西侧明度较高,东侧受光较少,东侧明度较低,则参照物理世界中的物体日落时刻受到太阳光线照射形成的投影,太阳光线从元素西侧向东侧照射,电子设备的显示屏显示的用户界面中的元素“18:00”的投影从元素“18:00”底部西侧向东侧方向扩展延伸,向东位移距离长;Exemplarily, as shown in Figure 3i, when the center point of the light-receiving area of the electronic device is A1, the element "18:00" in the user interface displayed on the display screen of the electronic device receives more light on the west side, and the brightness on the west side is higher. High, the east side receives less light, and the east side has low brightness, then refer to the projection of objects in the physical world that are irradiated by the sun's rays at sunset. The projection of the element "18:00" in the interface extends from the west side of the bottom of the element "18:00" to the east side, and the eastward displacement distance is long;
当电子设备绕上述建立的空间直角坐标系的y轴转动时,若转动后电子设备的显示屏正面朝西,电子设备的受光区域的中心点从A1移动到了A3,电子设备的显示屏显示的用户界面中的元素“18:00”中部受光,中部明度较高,则参照物理世界中的物体日落时刻受到太阳光线照射形成的投影,太阳光线从元素正面照射,电子设备的显示屏显示的用户界面中的元素“18:00”的投影从元素“18:00”底部西侧向东侧方向扩展延伸,显示在元素“18:00”底部,即电子设备的显示屏显示的用户界面中的元素“18:00”的投影自元素“18:00”底部向后方扩散延伸,投影所在的显示平面平行于空间直角坐标系的xz平面。When the electronic device rotates around the y-axis of the space rectangular coordinate system established above, if the display screen of the electronic device faces west after the rotation, the center point of the light-receiving area of the electronic device moves from A1 to A3, and the display screen of the electronic device displays The element "18:00" in the user interface receives light in the middle, and the brightness in the middle is higher, then refer to the projection formed by the sun's rays irradiated by the objects in the physical world at sunset. The projection of the element "18:00" in the interface extends from the west to the east at the bottom of the element "18:00", and is displayed at the bottom of the element "18:00", that is, in the user interface displayed by the display screen of the electronic device. The projection of the element "18:00" extends backward from the bottom of the element "18:00", and the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system.
(3)若电子设备的受光区域的中心点在显示屏的侧边上移动,则显示屏显示的用户界面中的元素的投影为光线照射元素的外轮廓时形成的平面上形成的形状,投影所在的显示平面平行于空间直角坐标系的横轴与竖轴形成的平面。(3) If the center point of the light-receiving area of the electronic device moves on the side of the display screen, the projection of the elements in the user interface displayed by the display screen is the shape formed on the plane formed when the light irradiates the outer contour of the element. The display plane where it is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
示例性地,如图3j所示,以时间12:00为例,设定上述建立的空间直角坐标系的x轴对齐东西水平方向,空间直角坐标系的y轴和z轴分别垂直于东西水平方向。时太阳一般 处于一天中高度正中间,光照方向垂直向下,电子设备的受光区域的中心点为A1,则可以确定此时电子设备的显示屏显示的用户界面中的元素“12:00”顶部受光较多,顶部明度较高,低部受光较少,低部明度较低。当电子设备绕上述建立的空间直角坐标系的z轴顺时针转动时,电子设备的受光区域的中心点从A1移动到了A2,则可以确定此时电子设备的显示屏显示的用户界面中的元素“12:00”西侧受光较多,西侧明度较高,东侧受光较少,东侧明度较低。Illustratively, as shown in Figure 3j, taking time 12:00 as an example, it is assumed that the x-axis of the above-established spatial rectangular coordinate system is aligned with the east-west horizontal direction, and the y-axis and z-axis of the spatial rectangular coordinate system are respectively perpendicular to the east-west horizontal direction. direction. When the sun is generally in the middle of the height of the day, the illumination direction is vertically downward, and the center point of the light-receiving area of the electronic device is A1, it can be determined that the top of the element "12:00" in the user interface displayed on the display screen of the electronic device at this time More light is received, the top is brighter, the lower is less light, and the lower is low. When the electronic device rotates clockwise around the z-axis of the above-established spatial Cartesian coordinate system, the center point of the light-receiving area of the electronic device moves from A1 to A2, and the elements in the user interface displayed on the display screen of the electronic device can be determined at this time. "12:00" The west side receives more light, the west side has higher brightness, the east side receives less light, and the east side has lower brightness.
需要说明的是,本申请实施例中,当电子设备的显示屏显示的用户界面中的元素受光时,参照物理世界中的物体受到同样方向的光照时呈现的投影效果,电子设备的显示屏显示的用户界面中的元素也会呈现类似的投影效果。It should be noted that, in the embodiment of the present application, when the elements in the user interface displayed on the display screen of the electronic device are exposed to light, the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
示例性地,如图3k所示,当电子设备的受光区域的中心点为A1时,电子设备的显示屏显示的用户界面中的元素“12:00”顶部受光较多,顶部明度较高,低部受光较少,低部明度较低,则参照物理世界中的物体日落时刻受到太阳光线照射形成的投影,电子设备的显示屏显示的用户界面中的元素“12:00”的投影与元素“12:00”外轮廓重合,显示在元素“12:00”底部,即投影所在的显示平面平行于空间直角坐标系的xz平面;Exemplarily, as shown in Fig. 3k, when the center point of the light-receiving area of the electronic device is A1, the top of the element "12:00" in the user interface displayed on the display screen of the electronic device receives more light, and the top is brighter. The lower part receives less light, and the lower part has lower brightness. Referring to the projection formed by the object in the physical world when it is irradiated by sunlight at sunset, the projection of the element "12:00" in the user interface displayed on the display screen of the electronic device and the element The outer contour of "12:00" coincides and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
当电子设备绕上述建立的空间直角坐标系的z轴顺时针转动时,电子设备的受光区域的中心点从A1移动到了A2,电子设备的显示屏显示的用户界面中的元素“12:00”西侧受光较多,西侧明度较高,东侧受光较少,东侧明度较低,则参照物理世界中的物体中午时刻受到太阳光线照射形成的投影,电子设备的显示屏显示的用户界面中的元素“12:00”的投影为光线照射元素“12:00”的外轮廓时形成的形状,即元素底视图形状,投影所在的显示平面始终平行于空间直角坐标系的xz平面,不随电子设备转动而发生变化。When the electronic device rotates clockwise around the z-axis of the space rectangular coordinate system established above, the center point of the light-receiving area of the electronic device moves from A1 to A2, and the element "12:00" in the user interface displayed on the display screen of the electronic device The west side receives more light, the west side has higher brightness, the east side receives less light, and the east side has lower brightness. Refer to the projection formed by the object in the physical world when it is illuminated by sunlight at noon, and the user interface displayed on the display screen of the electronic device The projection of the element "12:00" in the element "12:00" is the shape formed when the light irradiates the outer contour of the element "12:00", that is, the shape of the bottom view of the element. The display plane where the projection is located is always parallel to the xz plane of the space rectangular coordinate system. Changes occur as the electronic device rotates.
或者,示例性地,如图3l所示,以时间12:00为例,设定上述建立的空间直角坐标系的x轴对齐东西水平方向,空间直角坐标系的y轴和z轴分别垂直于东西水平方向。此时太阳一般处于一天中高度正中间,光照方向垂直向下,电子设备的受光区域的中心点为A1,则可以确定此时电子设备的显示屏显示的用户界面中的元素“12:00”顶部受光较多,顶部明度较高,低部受光较少,低部明度较低。当电子设备绕上述建立的空间直角坐标系的z轴逆时针转动时,电子设备的受光区域的中心点从A1移动到了A3,则可以确定此时电子设备的显示屏显示的用户界面中的元素“12:00”东侧受光较多,东侧明度较高,西侧受光较少,西侧明度较低。Or, exemplarily, as shown in FIG. 31 , taking time 12:00 as an example, it is assumed that the x-axis of the above-established spatial rectangular coordinate system is aligned with the east-west horizontal direction, and the y-axis and z-axis of the spatial rectangular coordinate system are respectively perpendicular to East-West horizontal orientation. At this time, the sun is generally in the middle of the height of the day, the illumination direction is vertically downward, and the center point of the light-receiving area of the electronic device is A1, then the element "12:00" in the user interface displayed on the display screen of the electronic device can be determined at this time. The top receives more light, the top brightness is higher, the lower part receives less light, and the lower brightness is lower. When the electronic device rotates counterclockwise around the z-axis of the above-established spatial Cartesian coordinate system, the center point of the light-receiving area of the electronic device moves from A1 to A3, and the elements in the user interface displayed on the display screen of the electronic device can be determined at this time. "12:00" The east side receives more light, the east side has higher brightness, the west side receives less light, and the west side has lower brightness.
需要说明的是,本申请实施例中,当电子设备的显示屏显示的用户界面中的元素受光时,参照物理世界中的物体受到同样方向的光照时呈现的投影效果,电子设备的显示屏显示的用户界面中的元素也会呈现类似的投影效果。It should be noted that, in the embodiment of the present application, when the elements in the user interface displayed on the display screen of the electronic device are exposed to light, the display screen of the electronic device shows the projection effect when the objects in the physical world are illuminated in the same direction Elements in the user interface of .
示例性地,如图3m所示,当电子设备的受光区域的中心点为A1时,电子设备的显示屏显示的用户界面中的元素“12:00”顶部受光较多,顶部明度较高,低部受光较少,低部明度较低,则参照物理世界中的物体日落时刻受到太阳光线照射形成的投影,电子设备的显示屏显示的用户界面中的元素“12:00”的投影与元素“12:00”外轮廓重合,显示在元素“12:00”底部,即投影所在的显示平面平行于空间直角坐标系的xz平面;Exemplarily, as shown in Fig. 3m, when the center point of the light-receiving area of the electronic device is A1, the top of the element "12:00" in the user interface displayed on the display screen of the electronic device receives more light, and the top is brighter. The lower part receives less light, and the lower part has lower brightness. Referring to the projection formed by the object in the physical world when it is irradiated by sunlight at sunset, the projection of the element "12:00" in the user interface displayed on the display screen of the electronic device and the element The outer contour of "12:00" coincides and is displayed at the bottom of the element "12:00", that is, the display plane where the projection is located is parallel to the xz plane of the space rectangular coordinate system;
当电子设备绕上述建立的空间直角坐标系的z轴逆时针转动时,电子设备的受光区域的中心点从A1移动到了A3,电子设备的显示屏显示的用户界面中的元素“12:00”东侧受光较多,东侧明度较高,西侧受光较少,西侧明度较低,则参照物理世界中的物体中午时刻受到太阳光线照射形成的投影,电子设备的显示屏显示的用户界面中的元素“12:00”的投 影为光线照射元素“12:00”的外轮廓时形成的形状,即元素底视图形状,投影所在的显示平面始终平行于空间直角坐标系的xz平面,不随电子设备转动而发生变化。When the electronic device rotates counterclockwise around the z-axis of the space rectangular coordinate system established above, the center point of the light-receiving area of the electronic device moves from A1 to A3, and the element "12:00" in the user interface displayed on the display screen of the electronic device The east side receives more light, the east side has higher brightness, the west side receives less light, and the west side has lower brightness, and the user interface displayed on the display screen of the electronic device is referred to the projection formed by the object in the physical world exposed to sunlight at noon. The projection of the element "12:00" in the element "12:00" is the shape formed when the light irradiates the outer contour of the element "12:00", that is, the shape of the bottom view of the element. The display plane where the projection is located is always parallel to the xz plane of the space rectangular coordinate system. Changes occur as the electronic device rotates.
方式二,若电子设备的显示屏显示的用户界面中的元素为雨滴,以电子设备的显示屏的中心为原点建立空间直角坐标系后,当电子设备围绕空间直角坐标系的任一坐标轴转动,电子设备的显示屏的朝向发生变化时,实时结合当前地理位置对应的风向信息,确定电子设备的显示屏当前朝向与风向的关系,调整电子设备的显示屏显示的用户界面中的雨滴的移动方向。Method 2: If the elements in the user interface displayed by the display screen of the electronic device are raindrops, after establishing the space rectangular coordinate system with the center of the display screen of the electronic device as the origin, when the electronic device rotates around any coordinate axis of the space rectangular coordinate system , when the orientation of the display screen of the electronic device changes, combine the wind direction information corresponding to the current geographical location in real time to determine the relationship between the current orientation of the display screen of the electronic device and the wind direction, and adjust the movement of the raindrops in the user interface displayed by the display screen of the electronic device direction.
示例性地,如图3n所示,若当前地理位置对应的风向为东南风,则可以确定此时电子设备的显示屏显示的用户界面中的雨滴的移动方向将由垂直方向变为东南方向,若当前地理位置对应的风向为西南方向,则可以确定此时电子设备的显示屏显示的用户界面中的雨滴的移动方向将由垂直方向变为西南方向,若当前地理位置无风,则可以确定此时电子设备的显示屏显示的用户界面中的雨滴的移动方向仍为垂直方向。Exemplarily, as shown in Figure 3n, if the wind direction corresponding to the current geographic location is the southeast wind, it can be determined that the movement direction of the raindrops in the user interface displayed on the display screen of the electronic device will change from the vertical direction to the southeast direction. The wind direction corresponding to the current geographical location is the southwest direction, it can be determined that the movement direction of the raindrops in the user interface displayed on the display screen of the electronic device will change from the vertical direction to the southwest direction. The moving direction of the raindrops in the user interface displayed by the display screen of the electronic device is still the vertical direction.
基于以上实施例,本申请实施例还提供了一种电子设备,所述电子设备用于实现以上各图中的界面显示方法。如图4所示,所述电子设备400可以包括:Based on the above embodiments, the embodiments of the present application further provide an electronic device, and the electronic device is used to implement the interface display methods in the above figures. As shown in FIG. 4 , the electronic device 400 may include:
第一确定模块401,用于以电子设备的显示屏的中心为原点建立在所述电子设备转动时固定不变的空间直角坐标系,确定所述电子设备围绕所述空间直角坐标系的任一坐标轴转动时所述显示屏的朝向;The first determination module 401 is used to establish a rectangular space coordinate system that is fixed when the electronic device rotates with the center of the display screen of the electronic device as the origin, and determine any one of the rectangular space coordinate systems surrounding the electronic device. The orientation of the display screen when the coordinate axis rotates;
第二确定模块402,用于获取所述电子设备当前地理位置,确定所述当前地理位置对应的光照信息或者风向信息;The second determining module 402 is configured to acquire the current geographic location of the electronic device, and determine the illumination information or wind direction information corresponding to the current geographic location;
第三确定模块403,用于基于所述当前地理位置对应的光照信息,确定所述显示屏的朝向与光照方向关系或者风向信息,确定所述显示屏的朝向与光照方向或风向的关系;A third determining module 403, configured to determine the relationship between the orientation of the display screen and the lighting direction or wind direction information based on the lighting information corresponding to the current geographic location, and determine the relationship between the orientation of the display screen and the lighting direction or wind direction;
第一调整模块404,用于基于所述显示屏的朝向与所述光照方向的关系,确定所述显示屏显示的用户界面中的元素的投影,调整所述显示屏显示的用户界面中的元素的显示样式。The first adjustment module 404 is configured to, based on the relationship between the orientation of the display screen and the illumination direction, determine the projection of elements in the user interface displayed by the display screen, and adjust the elements in the user interface displayed by the display screen display style.
一种可能的设计中,所述电子设备还包括:In a possible design, the electronic device further includes:
第四确定模块,用于确定所述当前地理位置对应的风向信息;a fourth determining module, configured to determine wind direction information corresponding to the current geographic location;
第五确定模块,用于基于所述当前地理位置对应的风向信息,确定所述显示屏的朝向与风向的关系;a fifth determining module, configured to determine the relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location;
第二调整模块,用于基于所述显示屏的朝向与所述风向的关系,确定所述显示屏显示的用户界面中的元素的移动方向,调整所述显示屏显示的用户界面中的元素的显示样式。The second adjustment module is configured to, based on the relationship between the orientation of the display screen and the wind direction, determine the moving direction of the elements in the user interface displayed by the display screen, and adjust the movement direction of the elements in the user interface displayed by the display screen. Display style.
一种可能的设计中,所述空间直角坐标系的横轴平行于所述显示屏的第一侧边,所述空间直角坐标系的纵轴平行于所述显示屏的第二侧边,所述空间直角坐标系的竖轴垂直于所述显示屏;所述第一侧边为平行于地平线的侧边,所述第二侧边为垂直于地平线的侧边。In a possible design, the horizontal axis of the spatial rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the spatial rectangular coordinate system is parallel to the second side of the display screen, so The vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is a side parallel to the horizon, and the second side is a side perpendicular to the horizon.
一种可能的设计中,所述光照信息包括不同时间对应的太阳的光照方向;所述风向信息包括不同时间对应的风向。In a possible design, the illumination information includes the illumination directions of the sun corresponding to different times; the wind direction information includes the wind directions corresponding to different times.
一种可能的设计中,所述第一调整模块404,具体用于:基于所述显示屏的朝向与所述光照方向的关系,确定所述电子设备的受光区域的中心点相对于所述显示屏的位置;基于所述电子设备的受光区域的中心点相对于所述显示屏的位置,确定所述显示屏显示的用户界面中的元素的投影。In a possible design, the first adjustment module 404 is specifically configured to: determine, based on the relationship between the orientation of the display screen and the illumination direction, the center point of the light-receiving area of the electronic device relative to the display. The position of the screen; based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, the projection of the elements in the user interface displayed by the display screen is determined.
一种可能的设计中,所述第一调整模块404,具体用于:In a possible design, the first adjustment module 404 is specifically used for:
若所述电子设备的受光区域的中心点在所述显示屏的第一侧边的中心,或者,在所述显示屏平行于地平面时所述显示屏的正面,则所述显示屏显示的用户界面中的元素的投影与所述元素的外轮廓重合,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;If the center point of the light-receiving area of the electronic device is at the center of the first side of the display screen, or the front side of the display screen when the display screen is parallel to the ground plane, then the display screen displays The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the spatial Cartesian coordinate system;
若所述电子设备的受光区域的中心点在所述显示屏的第二侧边的中心,或者,在所述显示屏垂直于地平面时所述显示屏的正面或背面,则所述显示屏显示的用户界面中的元素的投影从所述元素的底部沿所述光照方向扩展延伸,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面。If the center point of the light-receiving area of the electronic device is at the center of the second side of the display screen, or the front or back of the display screen when the display screen is perpendicular to the ground plane, the display screen is The projection of the element in the displayed user interface extends from the bottom of the element along the illumination direction, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
若所述电子设备的受光区域的中心点在所述显示屏的侧边上移动,则所述显示屏显示的用户界面中的元素的投影为光线照射所述元素的外轮廓时形成的形状,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面。基于以上实施例,本申请实施例还提供了一种电子设备,所述电子设备用于实现以上各图中的界面显示方法。如图5所示,所述电子设备500可以包括一个或多个处理器501、一个或多个存储器502、显示屏503;以及一个或多个计算机程序,其中一个或多个计算机程序存储在一个或多个存储器502中(图中未示出),上述各器件可以通过一个或多个通信总线504耦合。If the center point of the light-receiving area of the electronic device moves on the side of the display screen, the projection of the element in the user interface displayed by the display screen is the shape formed when the light irradiates the outer contour of the element, The display plane on which the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system. Based on the above embodiments, the embodiments of the present application further provide an electronic device, and the electronic device is used to implement the interface display methods in the above figures. As shown in FIG. 5, the electronic device 500 may include one or more processors 501, one or more memories 502, a display screen 503; and one or more computer programs, wherein the one or more computer programs are stored in a In one or more memories 502 (not shown), the various devices described above may be coupled through one or more communication buses 504 .
其中,所述显示屏503用于显示所述电子设备带有的各个功能的功能图标和/或文字,当然还可以显示电子设备装配的各个应用程序的图标或某个应用程序被打开时的用户界面图等。所述存储器502中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令。所述处理器501调用存储器502中存储的所述指令,使得电子设备500可以执行上述图2、图3a、图3b、图3c、图3d、图3e、图3f、图3g、图3h、图3i、图3j、图3k、图3l、图3m、图3n所示的各个方法实施例。The display screen 503 is used to display function icons and/or texts of various functions of the electronic device. Of course, it can also display the icons of various application programs assembled on the electronic device or the user when a certain application program is opened. interface diagram, etc. The memory 502 stores one or more computer programs including instructions. The processor 501 calls the instructions stored in the memory 502, so that the electronic device 500 can execute the above-mentioned Fig. 2, Fig. 3a, Fig. 3b, Fig. 3c, Fig. 3d, Fig. 3e, Fig. 3f, Fig. 3g, Fig. 3i, FIG. 3j, FIG. 3k, FIG. 3l, FIG. 3m, and the respective method embodiments shown in FIG. 3n.
需要说明的是,本申请实施例中,处理器501可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储器502中,处理器501读取存储器502中的程序指令,结合其硬件完成上述方法的步骤。It should be noted that, in this embodiment of the present application, the processor 501 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware components, which can implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software module may be located in the memory 502, and the processor 501 reads the program instructions in the memory 502, and completes the steps of the above method in combination with its hardware.
需要说明的是,本申请实施例中,存储器502可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如RAM。存储器还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储指令和/或数据。It should be noted that, in this embodiment of the present application, the memory 502 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or a volatile memory ( volatile memory), such as RAM. The memory may also be, but is not limited to, any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing instructions and/or data.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的图5所示的电子设备500在实施本发明实施例后的具体工作过程可以参考前述方法实施例中的对应过程,在此不再赘述。电子设备500的更为详尽的结构和功能可以参照前述图1所示的实施例中的详细描述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the electronic device 500 shown in FIG. 5 described above after implementing the embodiments of the present invention, reference may be made to the corresponding processes in the foregoing method embodiments. , and will not be repeated here. For a more detailed structure and function of the electronic device 500, reference may be made to the detailed description in the foregoing embodiment shown in FIG. 1 .
基于以上实施例,本申请实施例还提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行以上图2、图3a、图3b、图3c、图3d、图3e、图3f、图3g、图3h、图3i、图3j、图3k、图3l、图3m、图3n所示的 各个方法实施例。Based on the above embodiments, the embodiments of the present application further provide a computer storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to execute the above FIG. 2, FIG. 3a, FIG. 3b, Figure 3c, Figure 3d, Figure 3e, Figure 3f, Figure 3g, Figure 3h, Figure 3i, Figure 3j, Figure 3k, Figure 3l, Figure 3m, Figure 3n show various method embodiments.
基于以上实施例,本申请实施例还提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行以上图2、、图3a、图3b、图3c、图3d、图3e、图3f、图3g、图3h、图3i、图3j、图3k、图3l、图3m、图3n所示的各个方法实施例。本申请实施例是参照实施例所涉及的方法、装置、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Based on the above embodiments, the embodiments of the present application also provide a computer program product, when the computer program product runs on a computer, the computer is made to execute the above Fig. 2, Fig. 3a, Fig. 3b, Fig. 3c, Fig. Figure 3d, Figure 3e, Figure 3f, Figure 3g, Figure 3h, Figure 3i, Figure 3j, Figure 3k, Figure 3l, Figure 3m, Figure 3n each method embodiment shown. The embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, apparatuses, and computer program products involved in the embodiments. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flows of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

Claims (14)

  1. 一种界面显示方法,其特征在于,包括:An interface display method, comprising:
    以电子设备的显示屏的中心为原点建立在所述电子设备转动时固定不变的空间直角坐标系,确定所述电子设备围绕所述空间直角坐标系的任一坐标轴转动时所述显示屏的朝向;Using the center of the display screen of the electronic device as the origin to establish a rectangular space coordinate system that is fixed when the electronic device rotates, and determining the display screen when the electronic device rotates around any coordinate axis of the rectangular space coordinate system direction;
    获取所述电子设备当前地理位置,确定所述当前地理位置对应的光照信息;Obtain the current geographic location of the electronic device, and determine the illumination information corresponding to the current geographic location;
    基于所述当前地理位置对应的光照信息,确定所述显示屏的朝向与光照方向关系;Determine the relationship between the orientation of the display screen and the illumination direction based on the illumination information corresponding to the current geographic location;
    基于所述显示屏的朝向与所述光照方向的关系,确定所述显示屏显示的用户界面中的元素的投影,调整所述显示屏显示的用户界面中的元素的显示样式。Based on the relationship between the orientation of the display screen and the illumination direction, the projection of the elements in the user interface displayed on the display screen is determined, and the display style of the elements in the user interface displayed on the display screen is adjusted.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    确定所述当前地理位置对应的风向信息;determining the wind direction information corresponding to the current geographic location;
    基于所述当前地理位置对应的风向信息,确定所述显示屏的朝向与风向的关系;Determine the relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location;
    基于所述显示屏的朝向与所述风向的关系,确定所述显示屏显示的用户界面中的元素的移动方向,调整所述显示屏显示的用户界面中的元素的显示样式。Based on the relationship between the orientation of the display screen and the wind direction, the moving direction of the element in the user interface displayed on the display screen is determined, and the display style of the element in the user interface displayed on the display screen is adjusted.
  3. 如权利要求1或2所述的方法,其特征在于,所述空间直角坐标系的横轴平行于所述显示屏的第一侧边,所述空间直角坐标系的纵轴平行于所述显示屏的第二侧边,所述空间直角坐标系的竖轴垂直于所述显示屏;所述第一侧边为平行于地平线的侧边,所述第二侧边为垂直于地平线的侧边。The method according to claim 1 or 2, wherein the horizontal axis of the spatial rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the spatial rectangular coordinate system is parallel to the display screen The second side of the screen, the vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is the side parallel to the horizon, and the second side is the side perpendicular to the horizon .
  4. 如权利要求3所述的方法,其特征在于,所述光照信息包括不同时间对应的光照方向;所述风向信息包括不同时间对应的风向。The method of claim 3, wherein the illumination information includes illumination directions corresponding to different times; and the wind direction information includes wind directions corresponding to different times.
  5. 如权利要求4所述的方法,其特征在于,基于所述显示屏的朝向与所述光照方向的关系,确定所述显示屏显示的用户界面中的元素的投影,包括:The method according to claim 4, wherein determining the projection of the element in the user interface displayed on the display screen based on the relationship between the orientation of the display screen and the illumination direction, comprising:
    基于所述显示屏的朝向与所述光照方向的关系,确定所述电子设备的受光区域的中心点相对于所述显示屏的位置;determining the position of the center point of the light-receiving area of the electronic device relative to the display screen based on the relationship between the orientation of the display screen and the illumination direction;
    基于所述电子设备的受光区域的中心点相对于所述显示屏的位置,确定所述显示屏显示的用户界面中的元素的投影。Projections of elements in the user interface displayed by the display screen are determined based on the position of the center point of the light-receiving area of the electronic device relative to the display screen.
  6. 如权利要求5所述的方法,其特征在于,基于所述电子设备的受光区域的中心点相对于所述显示屏的位置,确定所述显示屏显示的用户界面中的元素的投影,包括:The method according to claim 5, wherein determining the projection of elements in the user interface displayed on the display screen based on the position of the center point of the light-receiving area of the electronic device relative to the display screen, comprising:
    若所述电子设备的受光区域的中心点在所述显示屏的第一侧边的中心,或者,在所述显示屏平行于地平面时所述显示屏的正面,则所述显示屏显示的用户界面中的元素的投影与所述元素的外轮廓重合,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;If the center point of the light-receiving area of the electronic device is at the center of the first side of the display screen, or the front side of the display screen when the display screen is parallel to the ground plane, the display screen will display The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system;
    若所述电子设备的受光区域的中心点在所述显示屏的第二侧边的中心,或者,在所述显示屏垂直于地平面时所述显示屏的正面或背面,则所述显示屏显示的用户界面中的元素的投影从所述元素的底部沿所述光照方向扩展延伸,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;若所述电子设备的受光区域的中心点在所述显示屏的侧边上移动,则所述显示屏显示的用户界面中的元素的投影为光线照射所述元素的外轮廓时形成的形状,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面。If the center point of the light-receiving area of the electronic device is at the center of the second side of the display screen, or the front or back of the display screen when the display screen is perpendicular to the ground plane, the display screen is The projection of the element in the displayed user interface extends from the bottom of the element along the illumination direction, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system; If the center point of the light-receiving area of the electronic device moves on the side of the display screen, the projection of the element in the user interface displayed by the display screen is the shape formed when the light irradiates the outer contour of the element, the The display plane on which the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  7. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    第一确定模块,用于以电子设备的显示屏的中心为原点建立在所述电子设备转动时固定不变的空间直角坐标系,确定所述电子设备围绕所述空间直角坐标系的任一坐标轴转动时所述显示屏的朝向;The first determination module is used to establish a space rectangular coordinate system that is fixed when the electronic device rotates with the center of the display screen of the electronic device as the origin, and determine any coordinate of the electronic device around the space rectangular coordinate system The orientation of the display screen when the shaft rotates;
    第二确定模块,用于获取所述电子设备当前地理位置,确定所述当前地理位置对应的光照信息或者风向信息;a second determining module, configured to acquire the current geographic location of the electronic device, and determine the illumination information or wind direction information corresponding to the current geographic location;
    第三确定模块,用于基于所述当前地理位置对应的光照信息,确定所述显示屏的朝向与光照方向关系或者风向信息,确定所述显示屏的朝向与光照方向或风向的关系;a third determining module, configured to determine the relationship between the orientation of the display screen and the lighting direction or wind direction information based on the lighting information corresponding to the current geographic location, and determine the relationship between the orientation of the display screen and the lighting direction or the wind direction;
    第一调整模块,用于基于所述显示屏的朝向与所述光照方向的关系,确定所述显示屏显示的用户界面中的元素的投影,调整所述显示屏显示的用户界面中的元素的显示样式。A first adjustment module, configured to determine the projection of elements in the user interface displayed by the display screen based on the relationship between the orientation of the display screen and the lighting direction, and adjust the projections of the elements in the user interface displayed by the display screen. Display style.
  8. 如权利要求7所述的电子设备,其特征在于,所述电子设备还包括:The electronic device of claim 7, wherein the electronic device further comprises:
    第四确定模块,用于确定所述当前地理位置对应的风向信息;a fourth determining module, configured to determine wind direction information corresponding to the current geographic location;
    第五确定模块,用于基于所述当前地理位置对应的风向信息,确定所述显示屏的朝向与风向的关系;a fifth determining module, configured to determine the relationship between the orientation of the display screen and the wind direction based on the wind direction information corresponding to the current geographic location;
    第二调整模块,用于基于所述显示屏的朝向与所述风向的关系,确定所述显示屏显示的用户界面中的元素的移动方向,调整所述显示屏显示的用户界面中的元素的显示样式。The second adjustment module is configured to, based on the relationship between the orientation of the display screen and the wind direction, determine the moving direction of the elements in the user interface displayed by the display screen, and adjust the movement direction of the elements in the user interface displayed by the display screen. Display style.
  9. 如权利要求7或8所述的电子设备,其特征在于,所述空间直角坐标系的横轴平行于所述显示屏的第一侧边,所述空间直角坐标系的纵轴平行于所述显示屏的第二侧边,所述空间直角坐标系的竖轴垂直于所述显示屏;所述第一侧边为平行于地平线的侧边,所述第二侧边为垂直于地平线的侧边。The electronic device according to claim 7 or 8, wherein the horizontal axis of the space rectangular coordinate system is parallel to the first side of the display screen, and the vertical axis of the space rectangular coordinate system is parallel to the The second side of the display screen, the vertical axis of the space rectangular coordinate system is perpendicular to the display screen; the first side is the side parallel to the horizon, and the second side is the side perpendicular to the horizon side.
  10. 如权利要求9所述的电子设备,其特征在于,所述光照信息包括不同时间对应的太阳的光照方向;所述风向信息包括不同时间对应的风向。The electronic device according to claim 9, wherein the illumination information includes illumination directions of the sun corresponding to different times; and the wind direction information includes wind directions corresponding to different times.
  11. 如权利要求10所述的电子设备,其特征在于,所述第一调整模块,具体用于:The electronic device according to claim 10, wherein the first adjustment module is specifically used for:
    基于所述显示屏的朝向与所述光照方向的关系,确定所述电子设备的受光区域的中心点相对于所述显示屏的位置;determining the position of the center point of the light-receiving area of the electronic device relative to the display screen based on the relationship between the orientation of the display screen and the illumination direction;
    基于所述电子设备的受光区域的中心点相对于所述显示屏的位置,确定所述显示屏显示的用户界面中的元素的投影。Projections of elements in the user interface displayed by the display screen are determined based on the position of the center point of the light-receiving area of the electronic device relative to the display screen.
  12. 如权利要求11所述的电子设备,其特征在于,所述第一调整模块,具体用于:The electronic device according to claim 11, wherein the first adjustment module is specifically used for:
    若所述电子设备的受光区域的中心点在所述显示屏的第一侧边的中心,或者,在所述显示屏平行于地平面时所述显示屏的正面,则所述显示屏显示的用户界面中的元素的投影与所述元素的外轮廓重合,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;If the center point of the light-receiving area of the electronic device is at the center of the first side of the display screen, or the front side of the display screen when the display screen is parallel to the ground plane, then the display screen displays The projection of the element in the user interface coincides with the outer contour of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the spatial Cartesian coordinate system;
    若所述电子设备的受光区域的中心点在所述显示屏的第二侧边的中心,或者,在所述显示屏垂直于地平面时所述显示屏的正面或背面,则所述显示屏显示的用户界面中的元素的投影从所述元素的底部沿所述光照方向扩展延伸,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面;If the center point of the light-receiving area of the electronic device is at the center of the second side of the display screen, or the front or back of the display screen when the display screen is perpendicular to the ground plane, the display screen is The projection of the element in the displayed user interface extends and extends along the illumination direction from the bottom of the element, and the display plane where the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system;
    若所述电子设备的受光区域的中心点在所述显示屏的侧边上移动,则所述显示屏显示的用户界面中的元素的投影为光线照射所述元素的外轮廓时形成的形状,所述投影所在的显示平面平行于所述空间直角坐标系的横轴与竖轴形成的平面。If the center point of the light-receiving area of the electronic device moves on the side of the display screen, the projection of the element in the user interface displayed by the display screen is the shape formed when the light irradiates the outer contour of the element, The display plane on which the projection is located is parallel to the plane formed by the horizontal axis and the vertical axis of the space rectangular coordinate system.
  13. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设 备上运行时,使得所述电子设备执行如权利要求1-6中任一项所述的界面显示方法。A computer storage medium, characterized by comprising computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to execute the interface display method according to any one of claims 1-6.
  14. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-6中任一项所述的界面显示方法。A computer program product, characterized in that, when the computer program product runs on a computer, the computer is caused to execute the interface display method according to any one of claims 1-6.
PCT/CN2021/115440 2020-10-31 2021-08-30 Interface display method and electronic device WO2022088919A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011197159.9A CN114449101B (en) 2020-10-31 2020-10-31 Interface display method, electronic equipment and storage medium
CN202011197159.9 2020-10-31

Publications (1)

Publication Number Publication Date
WO2022088919A1 true WO2022088919A1 (en) 2022-05-05

Family

ID=81356995

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/115440 WO2022088919A1 (en) 2020-10-31 2021-08-30 Interface display method and electronic device

Country Status (2)

Country Link
CN (1) CN114449101B (en)
WO (1) WO2022088919A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120135783A1 (en) * 2010-11-29 2012-05-31 Google Inc. Mobile device image feedback
CN104102410A (en) * 2013-04-10 2014-10-15 三星电子株式会社 Method and apparatus for displaying screen of portable terminal device
CN104951036A (en) * 2014-03-27 2015-09-30 腾讯科技(深圳)有限公司 Interface regulation method and terminal
CN110163950A (en) * 2018-02-12 2019-08-23 阿里巴巴集团控股有限公司 A kind of method, equipment and system generating shade in object

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278900A (en) * 2014-07-25 2016-01-27 钱晓松 Novel dynamic display method of mobile terminal
CN104598141B (en) * 2014-12-30 2017-11-17 西安易朴通讯技术有限公司 The system and method that simulation natural sunlight shade is shown

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120135783A1 (en) * 2010-11-29 2012-05-31 Google Inc. Mobile device image feedback
CN104102410A (en) * 2013-04-10 2014-10-15 三星电子株式会社 Method and apparatus for displaying screen of portable terminal device
CN104951036A (en) * 2014-03-27 2015-09-30 腾讯科技(深圳)有限公司 Interface regulation method and terminal
CN110163950A (en) * 2018-02-12 2019-08-23 阿里巴巴集团控股有限公司 A kind of method, equipment and system generating shade in object

Also Published As

Publication number Publication date
CN114449101A (en) 2022-05-06
CN114449101B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
WO2021023021A1 (en) Display method and electronic device
US20220050692A1 (en) Graphic Rendering Method and Electronic Device
US10502580B2 (en) Method and apparatus for providing augmented reality function in electronic device
WO2021013226A1 (en) Interface generation method and device
US11006030B2 (en) Method and electronic device for acquiring image by using camera comprising driving apparatus capable of rotating mirror
WO2021052279A1 (en) Foldable screen display method and electronic device
WO2021037149A1 (en) Application icon display method, and electronic apparatus
WO2020259529A1 (en) Indoor location method and electronic device
CN111221845A (en) Cross-device information searching method and terminal device
US11394871B2 (en) Photo taking control method and system based on mobile terminal, and storage medium
US20230400323A1 (en) Navigation interface display method and apparatus, terminal, and storage medium
CN110471614B (en) Method for storing data, method and device for detecting terminal
WO2022088919A1 (en) Interface display method and electronic device
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN111275607A (en) Interface display method and device, computer equipment and storage medium
CN110418049B (en) Position information processing method and device, mobile terminal and storage medium
WO2022089216A1 (en) Interface display method and electronic device
WO2021018248A1 (en) Interface display method and electronic device
CN110851435B (en) Data storage method and device
WO2024017332A1 (en) Method for controlling component, and related apparatus
CN111522576B (en) Application management method, device, equipment and computer storage medium
WO2024031282A1 (en) Slide verification method and apparatus, image generation method and apparatus, device, and storage medium
KR20120055865A (en) Mobile terminal
CN114594693A (en) Device control method, device and computer readable storage medium
CN114297523A (en) Address information acquisition method and device, electronic equipment, storage medium and product

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: 21884651

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21884651

Country of ref document: EP

Kind code of ref document: A1