CN113220176B - Display method and device based on widget, electronic equipment and readable storage medium - Google Patents

Display method and device based on widget, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113220176B
CN113220176B CN202110394428.9A CN202110394428A CN113220176B CN 113220176 B CN113220176 B CN 113220176B CN 202110394428 A CN202110394428 A CN 202110394428A CN 113220176 B CN113220176 B CN 113220176B
Authority
CN
China
Prior art keywords
widget
displaying
display
atmosphere
animation
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110394428.9A
Other languages
Chinese (zh)
Other versions
CN113220176A (en
Inventor
王明胜
胡鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110394428.9A priority Critical patent/CN113220176B/en
Publication of CN113220176A publication Critical patent/CN113220176A/en
Application granted granted Critical
Publication of CN113220176B publication Critical patent/CN113220176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a display method and device based on a widget, electronic equipment and a readable storage medium. By adopting the scheme, the electronic equipment alternately displays two widgets in one area, and a first widget in the two widgets does not have a corresponding APP and is used for displaying some atmosphere information. Because the electronic equipment can display information corresponding to two or more than two widgets in one widget region, the interface display function of the electronic equipment can be improved.

Description

Display method and device based on widget, electronic equipment and readable storage medium
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a widget-based display method, a widget-based display device, electronic equipment and a readable storage medium.
Background
With the rapid development of technology, various electronic devices such as smart watches, smart phones and the like are increasingly popular and diversified.
Currently, the interface of an electronic device is no longer used only to display application icons (icon), but may display desktop widgets (widgets) for displaying functional information, such as weather widgets, mail widgets, calendar widgets, and the like. Compared with the application icons, the widget not only provides an application entrance for the user, but also can display corresponding functional information, and is more attractive to the user.
However, both icons and widgets display separate information, and other information cannot be associated, resulting in weak interface display capability of the electronic device.
Disclosure of Invention
The embodiment of the application discloses a widget-based display method, a widget-based display device, electronic equipment and a readable storage medium, which are used for improving interface display capability of the electronic equipment.
In a first aspect, an embodiment of the present application provides a widget-based display method, including:
determining that the electronic equipment enters a widget display interface;
and displaying a first widget and a second widget on the widget display interface in turn, wherein the first widget is used for displaying atmosphere information, and the second widget is a widget corresponding to an application program APP installed on the electronic equipment.
In a second aspect, embodiments of the present application provide a widget-based display device, including:
the processing module is used for determining that the electronic equipment enters the widget display interface;
the display module is used for displaying a first widget and a second widget on the widget display interface in turn, wherein the first widget is used for displaying atmosphere information, and the second widget is a widget corresponding to an application program APP installed on the electronic equipment.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, which when executed causes the electronic device to implement the method as described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the method as described above.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements a method as described above.
According to the widget-based display method, device, electronic equipment and readable storage medium, after the electronic equipment enters the widget display interface, the electronic equipment alternately displays the first widget and the second widget in turn in the area where the second widget is displayed. By adopting the scheme, the electronic equipment alternately displays two widgets in one area, and a first widget in the two widgets does not have a corresponding APP and is used for displaying some atmosphere information. Because the electronic equipment can display information corresponding to two or more than two widgets in one widget region, the interface display function of the electronic equipment can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a flow chart of a widget-based display method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a procedure for setting a holiday and an animation in a widget-based display method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an interface change of a widget-based display provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of another interface change of a widget-based display provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a widget-based display device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments and figures herein are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Currently, icons of various Applications (APP) are displayed on an electronic device, and a user clicks on an icon to enter a user interface of the APP corresponding to the icon. In addition, some widgets (widgets) are displayed on the electronic device. A widget is a type of micro-plug-in that is typically displayed on the desktop of an electronic device and periodically receives data for updated display. Such as widgets on an electronic device that display information such as a clock, calendar, weather, etc., which appear as floating windows on a desktop that display specific information. Therefore, the user can view the specific information presented on the floating window on the electronic device at the first time without clicking or opening the widget. The display information on the widget can be refreshed automatically or manually by clicking a preset key.
In the display manner, the display capability of the electronic device is limited, and more information cannot be displayed to the user. Taking an electronic device as an example of a smart watch, for example, a user wants to know what festival is today, and must click a user interface of a calendar widget to enter a calendar APP to determine what festival is today, so that the user perceives the festival poorly; or after the user lights the intelligent watch, clicking the calendar APP directly to enter the user interface of the calendar APP. Although some smart watches in the market can render some animation effects on the dial of the smart watch on the holiday, for example, in spring, the effect that fireworks are gorgeous is rendered on the dial, but the duration is short, and the user perceives the holiday to be weak.
For another example, the user wants to know how many steps the user has currently walked, and the APP must enter the step counting function to determine the number of steps.
However, many times, the electronic device is provided with a coded lock, and the above-mentioned process of entering the APP to determine the holiday, the step number, etc. is complicated. When the electronic equipment is displayed based on the display mode, the display capability is weak.
Based on the above, the embodiments of the present application provide a widget-based display method, device, electronic device, and readable storage medium, which achieve the purpose of improving the interface display capability of the electronic device by alternately displaying different widgets.
The widget-based display method provided by the embodiment of the application is applied to electronic equipment with a display screen, including but not limited to mobile phones, tablet computers, motion cameras, intelligent watches, intelligent bracelets, intelligent glasses, vehicle-mounted terminal equipment and the like. The electronic device may be a portable device, such as an electronic device with a IOS, android, microsof or other operating system. It should be appreciated that in other embodiments of the present application, the electronic device described above may be a desktop computer having a touch-sensitive surface (e.g., a touch panel) instead of a portable electronic device.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 1, an electronic device 100 includes: radio Frequency (RF) circuitry 101, memory 102, touch screen 103, sensor 104, audio circuitry 106, wireless fidelity (WiFi) module 105, processor 107, and power supply 108. Those skilled in the art will appreciate that the electronic device structure shown in fig. 1 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
The following describes the respective constituent elements of the electronic device in detail with reference to fig. 1: the RF circuit 101 may be used for receiving and transmitting information or signals during a call, in particular, receiving downlink information from a base station and delivering the downlink information to the processor 107 for processing; in addition, the RF circuit 101 also transmits uplink data to the base station. Typically, RF circuitry 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code DivisionMultiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), fifth generation (5th generation,5G) mobile communication systems or New Radio (NR) communication systems, as well as future mobile communication systems, e-mail, short message service (Short Messaging Service, SMS), etc.
The memory 102 may be used to store software programs and modules, and the processor 107 may execute various functional applications and data processing of the electronic device by executing the software programs and modules stored in the memory 102. The memory 102 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The touch screen 103, also referred to as a touch panel, the touch screen 103 may include a touch sensitive surface 1031 and a display 1032. Wherein the touch-sensitive surface 1031 (e.g., a touch panel) can collect touch events on or near the user of the electronic device (e.g., user manipulation of any suitable object on the touch-sensitive surface 1031 or near the touch-sensitive surface 1031 using a finger, stylus, etc.) and send the collected touch information to other devices, such as the processor 101. Wherein a touch event by a user in the vicinity of touch sensitive surface 1031 may be referred to as hover touch; hover touch may refer to a user not requiring direct contact with a touch pad in order to select, move, or drag an object (e.g., an icon, etc.), but rather merely requiring the user to be located near the electronic device in order to perform a desired function. In the context of hover touch applications, the terms "touch," "contact," and the like do not imply a touch for directly contacting a touch screen, but rather a contact in the vicinity or proximity thereof. The touch-sensitive surface 1031 capable of hover touch may be implemented using capacitive, infrared light, ultrasound, and the like. Touch sensitive surface 1031 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and transmits the touch point coordinates to the processor 101, and may also receive and execute instructions transmitted by the processor 107. Further, the touch sensitive surface 1031 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. A display (also referred to as a display screen) 1032 may be used to display information entered by a user or provided to a user as well as various menus of the electronic device. Display 1032 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The touch sensitive surface 1031 may be overlaid on the display 1032, and after the touch sensitive surface 1031 determines a touch event thereon or nearby, it is communicated to the processor 107 to determine the type of touch event, and the processor 107 may then provide a corresponding visual output on the display 1032 based on the type of touch event. Although in fig. 1 the touch-sensitive surface 1031 and the display 1032 are implemented as two separate components for input and output functions of the electronic device, in some embodiments the touch-sensitive surface 1031 may be integrated with the display 1032 to implement input and output functions of the electronic device. It will be appreciated that the touch screen 103 is formed by stacking multiple layers of materials, only the touch sensitive surface (layer) and the display screen (layer) are shown in the embodiments of the present application, and other layers are not described in the embodiments of the present application. In addition, in other embodiments of the present application, the touch-sensitive surface 1031 may be overlaid on the display 1032, and the size of the touch-sensitive surface 1031 is larger than the size of the display screen 1032, so that the display screen 1032 is entirely overlaid under the touch-sensitive surface 1031, or the touch-sensitive surface 1031 may be configured on the front surface of the electronic device in a full panel manner, that is, the touch of the user on the front surface of the electronic device can be perceived by the electronic device, so that a full touch experience on the front surface of the electronic device can be achieved. In other embodiments, the touch-sensitive surface 1031 is disposed on the front of the electronic device in the form of a full panel, and the display 1032 may also be disposed on the front of the electronic device in the form of a full panel, thereby enabling a bezel-free structure on the front of the electronic device.
The electronic device may also include at least one sensor 104, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display 1032 based on the brightness of ambient light and a proximity sensor that may turn off the display 103 and/or backlight when the electronic device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 106, a speaker 1062, and a microphone 1061 may provide an audio interface between a user and an electronic device. The audio circuit 106 may transmit the received electrical signal after audio data conversion to the speaker 1062, where the electrical signal is converted into a sound signal by the speaker 1062 and output; on the other hand, the microphone 1061 converts the collected sound signals into electrical signals, which are received by the audio circuit 106 and converted into audio data, which are processed by the audio data output processor 107 and sent via the RF circuit 101 to, for example, another electronic device, or which are output to the memory 102 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 105, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 105, it is understood that it does not belong to the necessary constitution of the electronic device, and can be omitted entirely as required within a range that does not change the essence of the invention.
The processor 107 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 102, and calling data stored in the memory 102, thereby performing overall monitoring of the electronic device. Optionally, the processor 107 may include one or more processing units; preferably, the processor 107 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 107.
The electronic device further comprises a power supply 108 (e.g. a battery) for powering the various components, which may preferably be logically connected to the processor 107 via a power management system, whereby charging, discharging, and power consumption management functions are performed by the power management system.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein.
The following embodiments may be implemented in an electronic device (e.g., an electronic device) having the hardware described above.
Fig. 2 is a flowchart of a widget-based display method according to an embodiment of the present application. The execution body of the present embodiment is an electronic device, and the present embodiment includes:
201. and determining that the electronic equipment enters the widget display interface.
In this embodiment of the present application, the widget display interface refers to an interface of displaying a widget on an electronic device, such as a screen locking interface, where a time widget is displayed on the screen locking interface. For another example, the unlocked main interface displays a time widget, etc.
When the electronic equipment is switched from the off-screen state to the on-state, the electronic equipment detects that the electronic equipment enters the widget interface. When the electronic equipment is in a lighting state, the unlocking interface or the screen locking interface is displayed on the electronic equipment. The electronic device detects that the electronic device enters a lighting state by detecting the brightness, the current and the like of the display screen. When the electronic device is a mobile terminal such as a mobile phone, a user lightens the mobile phone by pressing a physical key, inputting a fingerprint, unlocking the face and the like. When the electronic device is a smart watch, the user lights the smart watch by lifting the wrist, pressing a physical key, and the like.
When the electronic equipment is returned to the main interface from the application interface, if the main interface displays the widget, the electronic equipment enters the widget display interface.
202. And displaying a first widget and a second widget on the widget display interface in turn, wherein the second widget is a widget corresponding to an application program APP installed on the electronic equipment.
In this embodiment, the first widget is a widget that does not correspond to APP and is used for displaying atmosphere information. For example, in spring festival, displaying the gorgeous animation of fireworks to highlight the atmosphere of spring festival; for another example, children display natural and mushy animation at a time to highlight the child's atmosphere; for another example, after the user steps reach the target steps, an animation of "encourage fueling" is displayed to highlight the atmosphere that the user steps reach the standard.
The content displayed by the first widget may be set by the system or may be user-defined. For example, at the factory, the default first widget is related to holiday atmosphere rendering; for another example, when shipped, the default first widget is associated with the number of steps of the user. For another example, the electronic device opens a user setting interface, and the user autonomously selects content related to the first widget.
The second widget is a widget corresponding to the APP installed on the electronic equipment, such as a calendar widget, a weather widget and the like.
When the electronic device enters the widget display interface, the electronic device alternately displays the first widget and the second widget in a region where the second widget is displayed. For example, one display period is 4 seconds, and each display period is divided into two time periods, one for displaying the first widget and the other for displaying the widget.
In this embodiment of the present invention, the number of the first widgets may be plural, and when the number of the first widgets is more than two, the electronic device alternately displays the plural first widgets and the plural second widgets in the area of the second widget.
According to the widget-based display method, after the electronic equipment enters the widget display interface, the electronic equipment alternately displays the first widgets and the second widgets in turn in the area where the second widgets are displayed. By adopting the scheme, the electronic equipment alternately displays two widgets in one area, and a first widget in the two widgets does not have a corresponding APP and is used for displaying some atmosphere information. Because the electronic equipment can display information corresponding to two or more than two widgets in one widget region, the interface display function of the electronic equipment can be improved.
Optionally, in the foregoing embodiment, after the electronic device alternately displays the first widget and the second widget on the widget display interface, if it is identified that the first operation instruction for clicking the first widget is input by the user on the display screen, the user interface of the APP is displayed on the display screen in response to the first operation instruction.
In an exemplary embodiment, when the electronic device alternately displays the first widget and the second widget on the widget display interface, if the user clicks the first widget, that is, the user inputs a first operation instruction on the display screen, the electronic device identifies the first operation instruction. After the electronic equipment recognizes the first operation instruction, the user interface of the APP is displayed on the display screen in response to the first operation instruction.
By adopting the scheme, a user enters the user interface of the APP through the first widget, the operation process is simple, and the time consumption is low.
In the above embodiment, after the electronic device alternately displays the first widget and the second widget on the display screen, after the user inputs the operation instruction for clicking the second widget on the display screen, the electronic device recognizes the second operation instruction, and displays the user interface of the APP corresponding to the second widget on the display screen in response to the second operation instruction.
By adopting the scheme, a user enters the user interface of the APP through the second widget, the operation process is simple, and the time consumption is low.
Optionally, in the above embodiment, the first widget corresponds to at least one of an atmosphere animation and an atmosphere picture. When the electronic equipment alternately displays a first widget and a second widget on a display screen, displaying at least one of an atmosphere animation and an atmosphere picture for rendering atmosphere in a time period for displaying the first widget in each display period, wherein the first widget corresponds to at least one of the atmosphere animation and the atmosphere picture, and each display period comprises a time period for displaying the first widget and a time period for displaying the second widget.
For example, a round of display cycle length is 5 seconds, the first 3 seconds for displaying the first widget and the second 2 seconds for displaying the second widget. And displaying atmosphere animation with the duration of 3 seconds on the dial in the time period of displaying the first widget.
For another example, a round of display cycle length is 5 seconds, the first 3 seconds being used to display the first widget and the second 2 seconds being used to display the second widget. And displaying the atmosphere animation with the duration of 2 seconds on the dial in the time period of displaying the first widget, and displaying the atmosphere picture after 1 second.
For another example, a round of display cycle length is 4 seconds, the first 2 seconds being used to display the first widget and the second 2 seconds being used to display the second widget. And displaying the atmosphere picture on the dial in the time period of displaying the first widget.
By adopting the scheme, the electronic equipment flexibly displays the animation and/or the picture in the time period for displaying the first widget in each display period, so that rich atmosphere information can be displayed.
Optionally, in the embodiment, the first widget corresponds to an atmosphere animation and an atmosphere picture. At this time, when the duration of alternately displaying the first widget and the second widget is less than or equal to a duration threshold, displaying the atmosphere animation in a time period for displaying the first widget in each display period; and when the time period for alternately displaying the first widget and the second widget is longer than a time period threshold, displaying the atmosphere picture in the time period for displaying the first widget in each display period, wherein the atmosphere picture is one frame of image in the atmosphere animation, and the first widget corresponds to the atmosphere animation and the atmosphere picture.
For example, when the electronic device is in a bright screen state and the user does not operate the electronic device for a long time, if the display screen continuously displays the first widget and the second widget alternately, and the first widget corresponds to a section of animation, the power consumption of the electronic device is easy to increase. Therefore, a time length threshold is preset, and when the first widget and the second widget are displayed in turn initially, the atmosphere animation corresponding to the first widget is displayed in the time period for displaying the first widget. For example, the display period is 5 seconds, and the duration threshold is 15 seconds, and then in the first 3 display periods, the atmosphere animation is displayed each time the first widget is displayed. Then, from the 4 th round, each time the first widget is displayed, an atmosphere picture is displayed.
In addition, when the electronic device is in the on-screen state and the user does not operate the electronic device for a long time, for example, the electronic device is not operated within 1 minute, the electronic device automatically enters the off-screen state.
By adopting the scheme, the electronic equipment determines the display content when the first widget is displayed according to the number of the display period, so that the power consumption of the electronic equipment can be saved.
Optionally, in the foregoing embodiment, the atmosphere information is, for example, a holiday atmosphere. Animation and pictures corresponding to various holidays are prestored on the electronic equipment. And the electronic equipment acquires the system time of the electronic equipment before alternately displaying the first widget and the second widget on the display screen. And then, the electronic equipment determines the atmosphere animation from the image library according to the system time, determines the atmosphere picture from the image library, wherein the animation in the animation library is associated with the festival, and the image in the image library is associated with the festival.
For example, some holiday information is pre-stored on the electronic device, for example, when the day of 12 months 24 is 0 to the day of 12 months 25 is 11:59 is christmas, and the display screen is lightened, the electronic device obtains the system time, compares the system time with the pre-stored holiday information, and judges whether the system time falls into a time period corresponding to a certain holiday. If the system time falls into the time period, determining an atmosphere animation corresponding to the festival from an animation library, and determining an atmosphere picture from an image library. The atmosphere animation and atmosphere picture are related to christmas, for example.
In the alternate display process, assuming that one display period is 4 seconds, the first 2 seconds displays the atmosphere animation and/or the atmosphere picture, and then the display screen displays the second widget. And after 2 seconds, the display screen continues to display the atmosphere animation and/or the atmosphere picture. And alternately reciprocating the steps until the holiday animation is eliminated when the user clicks the first widget. And then, the electronic equipment displays a user interface of the APP corresponding to the second widget.
If the system time does not fall within the time period, for example, the time point of 12 months and 27 days is 0, the electronic device does not display the first widget because the time point does not fall within the time period corresponding to any holiday.
By adopting the scheme, the electronic equipment displays the festival atmosphere by using the first widget, so that the perception of the user on the festival is increased, and the surprise of festival operation is increased.
In the above embodiment, the electronic device recognizes the first operation instruction and then enters the APP interface as an example. However, the embodiment of the present application is not limited, and in other possible implementations, after the electronic device recognizes the first operation instruction, the electronic device may not enter the user interface of the APP, but stop displaying in turn, and only display the second widget.
In the above embodiments, since the display screen sizes on the electronic devices are different, and many electronic devices open the icon size adjustment function, that is, the user can adjust the icon (icon), widget size, etc. on the main interface by setting the interface, etc. Therefore, in the embodiment of the application, a widget set is stored on the electronic device, the widget set includes a first widget, sizes of different widgets in the widget set are different, sizes of animations corresponding to the widgets with different sizes are different, and similarly, sizes of pictures corresponding to the different widgets are different.
For example, 3 widgets are stored in the widget set, and the sizes are respectively small, medium and large. For a holiday, each size widget corresponds to different pictures and animations, i.e., a small size widget corresponds to a small size picture and animation, a medium size widget corresponds to a medium size picture and animation, and a large size widget corresponds to a large size picture and animation. Wherein, the picture is a frame of image in the animation, such as the image with the most abundant display content, or the picture is the last frame of image in the animation. The pictures may be in scalable vector graphics (Scalable Vector Graphics, SVG), JPG format, joint photographic experts group (Joint Photographic Experts Group, JPEG) format, tagged image file format (Tag Image File Format, TIFF), etc., and embodiments of the present application are not limited.
When a screen of the electronic equipment is lightened, the electronic equipment determines a first widget from a widget set according to factory setting, and further determines animation and pictures, wherein the first widget is matched with the display screen of the electronic equipment in size; or the electronic equipment determines which size of widget is displayed according to the current setting, and further continuously determines the picture and the animation according to the determined first widget. And then displaying the first widget and the second widget on the display screen in turn.
By adopting the scheme, the electronic equipment selects the first widget according to system setting and the like, and then selects proper animation and/or pictures according to the size of the first widget for display, so that the display capability of the electronic equipment is improved.
In the above embodiment, the correspondence between the animation and the holiday may be set before the electronic device leaves the factory. After the electronic equipment leaves the factory, the system time is automatically acquired when the electronic equipment is lightened every time, and the system time and the holiday are compared, so that the atmosphere animation and the atmosphere picture are determined. However, the embodiments of the present application are not limited thereto, and in other possible implementations, the user may customize the association relationship between the holiday and the animation. In the self-defining process, the user inputs a third operation instruction to the display screen. The electronic equipment identifies a third operation instruction input by a user on the display screen, and sets the association relation between the animation in the animation library and the holiday in response to the third operation instruction, wherein the third operation instruction is used for establishing the association relation between the animation in the animation library and the holiday. For example, referring to fig. 3, fig. 3 is a schematic diagram illustrating a procedure of setting a holiday and an animation in the widget-based display method according to the embodiment of the present application.
Referring to fig. 3, the electronic device is specifically a mobile phone of a user. The user clicks the 'set' icon on the main interface and enters the set interface. Clicking an 'atmosphere rendering' option on the setting interface, and entering into the 'atmosphere rendering' setting interface. In the interface, the user can select any holiday predefined by the system, and the holiday can be customized. Assuming the user selects the spring festival, the display screen displays a floating window that displays "animation", "pictures". If the user clicks the animation, a third operation instruction is input to the electronic equipment, the electronic equipment displays an animation library, and the animation library stores the animation of the system and videos shot by the user through a camera and the like for the user to select. And selecting and storing a certain animation by the user, thereby establishing the association relation between the animation and the holiday.
And in the same way, the user can customize the association relationship between the festival and the picture. In the self-defining process, the user inputs a fourth operation instruction on the display screen. The electronic equipment identifies a fourth operation instruction input by a user on the display screen, and sets the association relation between the images in the image library and the holidays in response to the fourth operation instruction, wherein the fourth operation instruction is used for establishing the association relation between the images in the image library and the holidays.
By adopting the scheme, the user can flexibly set atmosphere information of various holidays through the setting interface of the electronic equipment, and the setting process is simple and convenient.
Optionally, in the foregoing embodiment, the atmosphere information is, for example, a prompt message sent to the user based on the user state data. Animation and pictures corresponding to the state data are prestored on the electronic equipment. Before the electronic equipment alternately displays the first widget and the second widget on the display screen, the atmosphere animation is determined from the image library according to the user state data acquired by the electronic equipment, the atmosphere picture is determined from the image library, the animation in the animation library is associated with the user state data, and the image in the image library is associated with the user state data.
For example, when the electronic device is a mobile terminal such as a mobile phone or a tablet, the electronic device can obtain the user status data through a wearable device such as a smart bracelet or a smart watch, which is bound to the electronic device. When the electronic device is a wearable device, the electronic device may detect and obtain user status data in real time. Some thresholds are pre-stored on the electronic device, for example, if the user status data is a step number, a step number threshold is pre-set, such as 10000 steps. The electronic equipment obtains the current step number, and if the current step number exceeds 10000 steps, the atmosphere animation is determined from the animation library, and the atmosphere animation is, for example, an animation for encouraging oiling. Or the electronic equipment determines the atmosphere picture from the image library and displays the atmosphere picture in the time period for displaying the first widget. The atmosphere picture is, for example, a "encourage fueling" picture, which may be the last frame image of the atmosphere animation.
In the alternate display process, assuming that one display period is 5 seconds, the first 3 seconds displays the atmosphere animation and/or the atmosphere picture, and then the display screen displays the second widget. And after 2 seconds, the display screen continues to display the atmosphere animation and/or the atmosphere picture. And the electronic equipment alternately reciprocates in this way until the user clicks the first widget to eliminate the 'encouraging oiling' animation, and displays a user interface of the APP corresponding to the second widget.
If the current step number does not reach the standard, for example, the current step number is only 200 steps, the electronic device does not display the first widget. Or the atmosphere animation is an animation of which the 'today target is not finished and the oiling is continued', and the atmosphere picture is a certain frame of image in the atmosphere animation.
By adopting the scheme, the display screen of the electronic equipment can display more information by expanding the science and technology romance of the widget as the efficiency gadget, and meanwhile, the emotional interaction between the electronic equipment and the user is increased.
In the above embodiment, when the atmosphere information is a prompt information sent to the user based on the user state data, the user state data includes at least one of the following data: heart rate, number of steps, physiological data, calories, weight, blood pressure, and vital capacity.
By adopting the scheme, the user can know the user state data on the main interface or the screen locking interface of the electronic equipment without entering the APP related to health, so that the user is prevented from carrying out complex operation on the electronic equipment.
In the above embodiment, when the second widgets are at least two and at least two second widgets are respectively located in different areas on the display screen, the first widget and the corresponding second widget are displayed in one or more areas in a streaming manner.
For example, many times, the widget display interface displays a plurality of second widgets, for example, a cell phone, and the second widgets displayed on the main interface of the cell phone include a time widget, a calendar widget, and a weather widget. These are
At the moment, when the electronic equipment alternately displays the first widget and the second widget, the first widget and the time widget can be displayed in the region corresponding to the time widget, only the calendar widget is displayed in the region corresponding to the calendar widget, and only the weather widget is displayed in the region corresponding to the weather widget; or the electronic equipment displays the first widget and the calendar widget in the area corresponding to the calendar widget, and displays the first widget and the weather widget in the area corresponding to the weather widget; or the electronic device displays a first widget and a calendar widget in the area corresponding to the calendar widget, wherein the first widget is a widget related to the festival atmosphere, and displays a first widget and a weather widget related to the step number in the area corresponding to the weather widget.
By adopting the scheme, the electronic equipment can flexibly display the first widget and the second widget.
The above display method based on the widget will be described in detail below by taking an electronic device as an example of a smart watch and a mobile phone, respectively. For example, please refer to fig. 4 and 5.
Fig. 4 is a schematic diagram of an interface change of a widget-based display manner according to an embodiment of the present application. In this embodiment, the electronic device is an intelligent watch, and the display screen is a dial of the electronic device. Referring to fig. 4, initially, the smart watch is in an off-screen state, as shown in the black panel.
After that, when an event such as lifting the hand of the user occurs, the dial plate of the intelligent watch is lightened, as shown by a white dial plate in the figure. At this time, the first widget and the second widget are alternately displayed on the dial of the smart watch. Assuming that the first widget is a holiday related widget, shown as 41, and is a spring festival, the second widget is a time widget, shown as 42. And in each display period, the intelligent watch displays the first widget and the second widget in sequence. Wherein the first widget for example displays an animation of a segment of fireworks being opened, a frame of fireworks image, etc.
When the user clicks the first widget, the intelligent watch displays a user interface of the APP corresponding to the second widget. For example, an alarm clock, a stopwatch, etc. are displayed on the dial.
In addition, after the first widget and the second widget are alternately displayed on the dial plate of the intelligent watch in turn, if the user does not operate the dial plate for a long time, the intelligent watch automatically enters a screen-off state.
Fig. 5 is a schematic diagram of another interface change of a widget-based display manner according to an embodiment of the present application. In this embodiment, the electronic device is a mobile phone. Referring to fig. 5, initially, the mobile phone is in a screen-off state, as shown in a black display screen.
And then, unlocking the electronic equipment by the user through modes of fingerprint unlocking, face unlocking and the like, displaying a main interface by the electronic equipment, and displaying a time widget, a calendar widget and a weather widget on the main interface. Suppose the first widget is a holiday related widget and is spring festival, as shown at 51. The second widget is a time widget, shown as 52. And in each display period, the mobile phone displays the first widget and the second widget in sequence. Wherein the first widget for example displays an animation of a segment of fireworks being opened, a frame of fireworks image, etc.
When the user clicks the first widget, the mobile phone displays a user interface of the APP corresponding to the second widget. For example, an alarm clock, a stopwatch, etc. are displayed on the display screen.
In addition, after the mobile phone alternately displays the first widget and the second widget, if the user does not operate the display screen for a long time, the mobile phone automatically enters a screen-off state.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 6 is a schematic structural diagram of a widget-based display device according to an embodiment of the present application. The widget-based display apparatus 600 includes: a processing module 61 and a display module 62.
A processing module 61, configured to determine that the electronic device enters the widget display interface;
the display module 62 is configured to alternately display a first widget and a second widget on the widget display interface, where the first widget is used to display atmosphere information, and the second widget is a widget corresponding to an application program APP installed on the electronic device.
In an alternative implementation manner, the display module 62 is configured to display at least one of an atmosphere animation and an atmosphere picture for rendering an atmosphere in a period for displaying the first widget in each display period, where each display period includes a period for displaying the first widget and a period for displaying the second widget.
In an alternative implementation manner, the display module 62 is configured to display, in each display period, the atmosphere animation in a period for displaying the first widget when a duration of alternately displaying the first widget and the second widget is less than or equal to a duration threshold; and when the time period for alternately displaying the first widget and the second widget is longer than a time period threshold, displaying the atmosphere picture in the time period for displaying the first widget in each display period, wherein the atmosphere picture is one frame of image in the atmosphere animation, and the first widget corresponds to the atmosphere animation and the atmosphere picture.
In an optional implementation manner, the processing module 61 is further configured to determine, before the display module 62 displays at least one of the atmosphere animation and the atmosphere picture in the period corresponding to the first widget in each display period, the first widget is matched with the display screen of the electronic device in size, and a plurality of widgets for displaying the atmosphere are stored in the widget set, sizes of different widgets in the widget set are different, the widgets in different sizes correspond to animations in different sizes, and/or the widgets in different sizes correspond to pictures in different sizes.
In an optional implementation manner, before the display module 62 alternately displays the first widget and the second widget on the widget display interface, the processing module 61 is further configured to obtain a system time of the electronic device, determine, according to the system time, the atmosphere animation from an image library, determine the atmosphere picture from an image library, and associate the animation in the animation library with a holiday, and associate the image in the image library with the holiday.
In an optional implementation manner, before the display module 62 alternately displays the first widget and the second widget on the widget display interface, the processing module 61 is further configured to determine, according to user status data acquired by the electronic device, the atmosphere animation from an animation library, determine the atmosphere picture from an image library, and determine, in the animation library, an animation associated with the user status data, and an image associated with the user status data.
In an alternative implementation, the user status data includes at least one of the following: heart rate, number of steps, physiological data, calories, weight, blood pressure, and vital capacity.
In an alternative implementation, the display module 62 is configured to display the first widget and the corresponding second widget in one or more areas when at least two, at least two second widgets are located in different areas on the display screen.
In an alternative implementation manner, the processing module 61 is further configured to identify a first operation instruction input by a user on the display screen after the display module 62 alternately displays a first widget and a second widget on the widget display interface, where the first operation instruction is used to click on the first widget; and responding to the first operation instruction, and displaying a user interface of the APP on the display screen.
In an alternative implementation manner, the processing module 61 is further configured to identify a second operation instruction input by the user on the display screen after the display module 62 alternately displays the first widget and the second widget on the widget display interface, where the second operation instruction is used to click on the second widget; and responding to the second operation instruction, and displaying a user interface of the APP on the display screen.
The widget-based display device provided in the embodiment of the present application may perform the action of the electronic device in the above embodiment, and its implementation principle and technical effect are similar, and are not described herein again.
The embodiment of the application also provides electronic equipment, which comprises a processor and a memory, wherein the memory stores computer instructions, and when the processor executes the computer instructions, the processor is caused to execute the method applied to the electronic equipment.
The specific implementation process of the processor can be referred to the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Optionally, the electronic device further comprises a communication component, wherein the processor, the memory and the communication component may be connected by a bus.
Embodiments of the present application also provide a computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out a method as applied to an electronic device as described above.
Embodiments of the present application also provide a computer program product comprising a computer program which, when executed by a processor, implements a method as applied to an electronic device as described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A widget-based display method, comprising:
determining that the electronic equipment enters a widget display interface;
displaying a first widget and a second widget on the widget display interface in turn, wherein the first widget is used for displaying atmosphere information, and the second widget is a widget corresponding to an application program APP installed on the electronic equipment;
the method for alternately displaying the first widget and the second widget on the widget display interface comprises the following steps:
displaying atmosphere animation in a time period for displaying the first widget in each display period when the time length for alternately displaying the first widget and the second widget is less than or equal to a time length threshold; and when the time period for alternately displaying the first widget and the second widget is longer than a time period threshold, displaying an atmosphere picture in a time period for displaying the first widget in each display period, wherein the atmosphere picture is a frame of image in the atmosphere animation, the first widget corresponds to the atmosphere animation and the atmosphere picture, and each display period comprises a time period for displaying the first widget and a time period for displaying the second widget.
2. The method of claim 1, wherein before alternately displaying the first widget and the second widget on the widget display interface, further comprising:
determining the first widget from a widget set, wherein the first widget is matched with the display screen of the electronic equipment in size, a plurality of widgets for displaying atmosphere are stored in the widget set, the widgets in different sizes in the widget set are different, the widgets in different sizes correspond to animations in different sizes, and/or the widgets in different sizes correspond to pictures in different sizes.
3. The method of claim 1 or 2, wherein before alternately displaying the first widget and the second widget on the widget display interface, further comprising:
acquiring the system time of the electronic equipment;
and determining the atmosphere animation from an animation library according to the system time, determining the atmosphere picture from an image library, wherein the animation in the animation library is associated with a festival, and the image in the image library is associated with the festival.
4. The method of claim 1 or 2, wherein before alternately displaying the first widget and the second widget on the widget display interface, further comprising:
And determining the atmosphere animation from an image library according to the user state data acquired by the electronic equipment, determining the atmosphere picture from an image library, wherein the animation in the animation library is associated with the user state data, and the image in the image library is associated with the user state data.
5. The method of claim 4, wherein the user status data comprises at least one of: heart rate, number of steps, physiological data, calories, weight, blood pressure, and vital capacity.
6. The method according to claim 1 or 2, wherein the alternately displaying the first widget and the second widget on the widget display interface comprises:
and when at least two second widgets are respectively positioned in different areas on the display screen, displaying the first widget and the corresponding second widget in one or more areas in a streaming manner.
7. The method according to claim 1 or 2, further comprising, after alternately displaying the first widget and the second widget on the widget display interface:
identifying a first operation instruction input by a user on a display screen, wherein the first operation instruction is used for clicking the first widget;
And responding to the first operation instruction, and displaying a user interface of the APP on the display screen.
8. A widget-based display apparatus, comprising:
the processing module is used for determining that the electronic equipment enters the widget display interface;
the display module is used for displaying a first widget and a second widget in turn on the widget display interface, wherein the first widget is used for displaying atmosphere information, and the second widget is a widget corresponding to an application program APP installed on the electronic equipment;
the display module is specifically used for displaying atmosphere animation in a time period for displaying the first widget in each round of display period when the time length for alternately displaying the first widget and the second widget is smaller than or equal to a time length threshold; and when the time period for alternately displaying the first widget and the second widget is longer than a time period threshold, displaying an atmosphere picture in a time period for displaying the first widget in each display period, wherein the atmosphere picture is a frame of image in the atmosphere animation, the first widget corresponds to the atmosphere animation and the atmosphere picture, and each display period comprises a time period for displaying the first widget and a time period for displaying the second widget.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, wherein execution of the computer program by the processor causes the electronic device to implement the method of any one of claims 1-7.
10. A computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the method of any one of claims 1-7.
CN202110394428.9A 2021-04-13 2021-04-13 Display method and device based on widget, electronic equipment and readable storage medium Active CN113220176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110394428.9A CN113220176B (en) 2021-04-13 2021-04-13 Display method and device based on widget, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110394428.9A CN113220176B (en) 2021-04-13 2021-04-13 Display method and device based on widget, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113220176A CN113220176A (en) 2021-08-06
CN113220176B true CN113220176B (en) 2023-07-04

Family

ID=77087145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110394428.9A Active CN113220176B (en) 2021-04-13 2021-04-13 Display method and device based on widget, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113220176B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098204A (en) * 2022-06-17 2022-09-23 深圳传音控股股份有限公司 Widget display method, intelligent terminal and storage medium
CN115309470B (en) * 2022-07-13 2023-07-28 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for loading widget

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135987A (en) * 2013-02-22 2013-06-05 北京小米科技有限责任公司 Dynamic icon display method and device
CN105682194A (en) * 2010-04-16 2016-06-15 联想(北京)有限公司 Method for displaying connection state of communication component in electronic device and electronic device
CN110062271A (en) * 2019-04-28 2019-07-26 腾讯科技(成都)有限公司 Method for changing scenes, device, terminal and storage medium
CN112099683A (en) * 2020-09-03 2020-12-18 维沃移动通信有限公司 Wallpaper display method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160189486A1 (en) * 2014-12-31 2016-06-30 Gamblit Gaming, Llc Space based interleaved wagering system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682194A (en) * 2010-04-16 2016-06-15 联想(北京)有限公司 Method for displaying connection state of communication component in electronic device and electronic device
CN103135987A (en) * 2013-02-22 2013-06-05 北京小米科技有限责任公司 Dynamic icon display method and device
CN110062271A (en) * 2019-04-28 2019-07-26 腾讯科技(成都)有限公司 Method for changing scenes, device, terminal and storage medium
CN112099683A (en) * 2020-09-03 2020-12-18 维沃移动通信有限公司 Wallpaper display method and device and electronic equipment

Also Published As

Publication number Publication date
CN113220176A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
WO2021052263A1 (en) Voice assistant display method and device
WO2021063343A1 (en) Voice interaction method and device
WO2019206091A1 (en) Screen-off display method and electronic device
EP3586316B1 (en) Method and apparatus for providing augmented reality function in electronic device
WO2019105227A1 (en) Application icon display method, terminal, and computer readable storage medium
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
CN108089891B (en) Application program starting method and mobile terminal
KR20180095409A (en) Electronic device and method for displaying screen thereof
WO2021063237A1 (en) Control method for electronic device, and electronic device
CN110837327B (en) Message viewing method and terminal
WO2022068819A1 (en) Interface display method and related apparatus
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN106502608B (en) Display methods, device and terminal device
WO2021037223A1 (en) Touch control method and electronic device
JP7397861B2 (en) Stylus pen detection method, system and related equipment
CN110502163A (en) The control method and terminal device of terminal device
CN113220176B (en) Display method and device based on widget, electronic equipment and readable storage medium
CN109379484A (en) A kind of information processing method and terminal
CN109408072A (en) A kind of application program delet method and terminal device
CN109327672A (en) A kind of video call method and terminal
CN109542279A (en) A kind of terminal equipment control method and terminal device
WO2021249281A1 (en) Interaction method for electronic device, and electronic device
CN109743724A (en) A kind of management method and mobile terminal of embedded SIM card
CN108984066B (en) Application icon display method and mobile terminal
CN113688019B (en) Response time duration detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant