CN106886435A - The loading method and device of widget - Google Patents

The loading method and device of widget Download PDF

Info

Publication number
CN106886435A
CN106886435A CN201710005864.6A CN201710005864A CN106886435A CN 106886435 A CN106886435 A CN 106886435A CN 201710005864 A CN201710005864 A CN 201710005864A CN 106886435 A CN106886435 A CN 106886435A
Authority
CN
China
Prior art keywords
widget
information
loading
type
electronic equipment
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.)
Pending
Application number
CN201710005864.6A
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201710005864.6A priority Critical patent/CN106886435A/en
Publication of CN106886435A publication Critical patent/CN106886435A/en
Pending legal-status Critical Current

Links

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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

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

Abstract

The embodiment of the invention discloses the loading method and device of a kind of widget, it is related to technical field of mobile terminals, methods described to include:Widget layout framework information is obtained, widget layout framework information includes one or more widget view location information to be loaded, and widget view location information includes being located at the positional information outside electronic equipment current screen scope;Obtain widget content parameters;The corresponding widget view of widget content parameters is loaded in one or more widget view location information;When the area shared by the whole widget views of loading exceeds electronic equipment screen scope, widget view is loaded in the positional information outside current screen scope.By setting one or more widget view location information to be loaded in widget layout framework information, widget with widget view location information equal number can be added in project and be shown, break the limitation loaded for widget in original screen, meet the demand that user adds any number of widget.

Description

Method and device for loading widget
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to a method and a device for loading a widget.
Background
With the development of internet technology, various applications having different functions are developed for users to use. Widgets (widgets) are small, downloadable applications that add dynamic content to a Web page based on HTML (hypertext markup language). It may be a click counter, real-time stock information, flight information, etc. Widgets are implemented by using some Web technologies, and normally, the code format of a widget includes DHTML (Dynamic hypertext Markup Language), JavaScript, Adobe Flash, and the like.
Due to the advantages of small size, multiple functions, personalized style and the like, the widgets are more and more widely applied to electronic equipment such as mobile terminals and the like. The user can add various widgets on the screen of the electronic equipment according to the needs and the preferences of the user.
In the process of implementing the invention, the inventor finds that the prior art has at least the following technical problems: when the widgets are loaded and displayed on the screen of the electronic device, each widget occupies a part of the screen space, and the total space occupied by all widgets must be within the range of the whole screen space. Generally, after 2 to 3 widgets are added to the same screen space, the occupied space of the widgets exceeds the range of the whole screen space, so that the number of the added widgets is limited, and the requirement of a user for using the widgets cannot be met.
Disclosure of Invention
The embodiment of the invention provides a widget loading method and device, which can solve the technical problem that the number of widgets added on a screen of electronic equipment is limited by the screen.
In order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides a method for loading a widget, where the method includes:
acquiring widget layout frame information, wherein the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information outside the current screen range of the electronic equipment;
modifying the widget type of a system of the electronic equipment, and acquiring widget content parameters based on the modified widget type;
loading the widget views corresponding to the widget content parameters on the one or more widget view position information;
and when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, loading the widget views at the position information outside the current screen range.
In a second aspect, an embodiment of the present invention further provides a device for loading a widget, where the device includes:
the layout unit is used for acquiring widget layout frame information, the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information located outside the current screen range of the electronic equipment;
the acquisition unit is used for modifying the widget type of the system of the electronic equipment and acquiring widget content parameters based on the modified widget type;
the loading unit is used for loading the widget views corresponding to the widget content parameters on the one or more widget view position information; and loading the widget views at the position information outside the current screen range when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment.
In a third aspect, the present invention also provides a non-transitory computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by an electronic device, the electronic device is caused to execute the method for loading the widget.
In a fourth aspect, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, which, when executed by an electronic device, cause the electronic device to execute the loading method of the widget described above.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of loading widgets as described above.
The method and the device for loading the widget comprise the steps of firstly obtaining widget layout frame information, wherein the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information which is positioned outside the current screen range of the electronic equipment; then modifying the widget type of the system of the electronic equipment, and acquiring widget content parameters based on the modified widget type; then loading the widget views corresponding to the widget content parameters on the one or more widget view position information; and finally, when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, loading the widget views in the position information outside the current screen range. By setting one or more pieces of widget view position information to be loaded in the widget layout frame information, the same number of widgets as the widget view position information can be added into the project for display, the limitation of the original screen on widget loading is broken, and the requirement of a user for adding any number of widgets is met.
Drawings
Fig. 1 is a flowchart of a method for loading widgets according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for loading widgets according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a widget loading device according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a widget loading device according to another embodiment of the present invention;
fig. 5 is a schematic hardware structure diagram of an electronic device that executes a method for loading widgets according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method and the device for loading the widget are suitable for intelligent terminals comprising display screens, including intelligent mobile phones (such as iPhone), multimedia mobile phones, functional mobile phones and low-end mobile phones; and PDA (Personal digital Assistant, palmtop Computer), MID (Mobile Internet Device), and UMPC (Ultra-Mobile Personal Computer) devices, etc., such as iPad. But also to other electronic devices comprising a display screen.
An embodiment of the present invention provides a method for loading a widget, where the method is suitable for adding the widget on a screen of an electronic device, as shown in fig. 1, and the method includes:
step 101: the electronic equipment acquires the widget layout framework information.
The widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information located outside the current screen range of the electronic equipment. For example, the widget layout frame information may be waterfall flow frame information, which is displayed by expanding one or more widget view position information arranged according to a predetermined sequence from top to bottom, where the widget view position information is position information used for displaying the widget views, and the widget views with the quantity equal to that of the widget view position information may be loaded in the widget layout frame information through the widget view position information set in the widget layout frame information, and not only the widget may be added within the screen area range, but also more widget display modes and operation modes may be provided for the user.
Optionally, the widget view position information in the widget layout frame information may be in the form of a double-layer waterfall flow or a multi-column waterfall flow in addition to the waterfall flow form, where the presentation form is an attribute settable in the widget layout frame information. The widget view position information may be randomly arranged and combined according to the screen parameter and the widget parameter to achieve an optimal display effect, and the combined display form includes, but is not limited to, the above-mentioned waterfall flow, double-layer waterfall flow, or multi-column waterfall flow form, and the specific layout form is not limited here.
Step 102: the electronic equipment modifies the widget type of the system and acquires the widget content parameters based on the modified widget type.
The widget type is a parameter of the widget and is used for identifying a hierarchical position of the widget displayed on the screen, for example, the widget type may include the following three types: displaying the image at the desktop position (WIDGET CATEGORY HOME SCREEN), displaying the image at the lock SCREEN interface (WIDGET CATEGORY KEYGUARD), and using the image as a search control (WIDGET CATEGORYSEARCHBOX). When the electronic device adds the widget, the widget type of the system needs to be configured according to the widget type of the added widget, so that the widget type of the system is consistent with the widget type of the system, and then the widget list meeting the condition can be searched through an interface provided in the Android system based on the modified widget type.
Optionally, before modifying the widget type of the system, the method further includes: receiving and analyzing an adding instruction to obtain widget type information carried in the adding instruction; then modifying the widget type of the system includes: and setting the widget type of the system of the electronic equipment as the widget type corresponding to the widget type information carried by the adding instruction based on the widget type information. For example, after determining the widget type of the widget to be added, the widget type is added in the electronic device.
Optionally, the obtaining of the widget content parameter based on the modified widget type includes: configuring the widget type of the widget required to be loaded on the desktop of the electronic equipment as the widget type of a system of the electronic equipment; acquiring a first widget list corresponding to a widget type of a system, wherein the first widget list comprises widget information matched with the widget type of the system; analyzing the widget information in the first widget list, and updating the widget content parameters according to the widget information; and acquiring the updated widget content parameters. For example: after the widget type is added to the electronic equipment, a widget list in the system is searched based on the newly added widget type, information of each widget in the widget list is analyzed, the widget list is updated with a database, and widget content parameters are obtained.
Optionally, analyzing widget information in the first widget list, and updating the widget content parameter according to the widget information, including: checking configuration information corresponding to the widget information in the first widget list, and filtering the widgets with the security degree lower than a threshold value; acquiring a second widget list stored in a database, wherein the second widget list comprises widget information stored in the database; and replacing the second widget list with the first widget list.
Step 103: and the electronic equipment loads the widget views corresponding to the widget content parameters on the one or more widget view position information.
Optionally, before the step of loading the widget view corresponding to the widget content parameter on the one or more widget view location information, the method may further include: determining a configuration resolution protocol of a widget based on screen parameters of the electronic equipment; step 103 may further include: and configuring the widget content parameters based on the configuration analysis protocol, and loading the widget view corresponding to the configured widget content parameters.
For example, the screen parameters may include desktop parameters and screen display parameters; determining the brightness, transparency, color and the like of the widget view according to the desktop parameters, determining the size, position and interactive layout of the widget view according to the screen display parameters, and configuring the various parameters into a configuration analysis protocol, so that after the electronic equipment acquires the widget content parameters of the widget to be loaded, the widget content parameters are not directly loaded and displayed, and if the widget content parameters are directly displayed, the situation that the widget is not compatible with the screen parameters of the electronic equipment may occur. Therefore, the display form of the widget needs to be adjusted according to the configuration protocol to adapt to the screen parameters of the electronic device, so as to obtain the optimal display effect. In addition, different display styles can be added into the configuration protocol, and the style of the widget view is set in a user-defined mode on the premise that screen parameters are met. For example, the layout style of the system, including a desktop style, a wallpaper style, a body style, a screen locking style and the like, is acquired, and the widget view is configured based on the layout style, so that the style of the widget view is matched with the interface style where the widget view is located. Or the style of the widget view can be set according to the user-defined configuration of the user so as to meet the personalized requirements
Step 104: and when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, the electronic equipment loads the widget views at the position information positioned outside the current screen range.
For example, the widget layout frame information acquired in step 101 includes one or more widget view position information to be loaded, and the widget view position information includes position information located outside the current screen of the electronic device. When the number of the widgets added into the current screen of the electronic device reaches the upper limit, if the user continues to add the widgets into the current screen, the user adds the widgets into the position information outside the range of the current screen, at the moment, the add widget interface is invisible in the current screen, but the add widget is successfully added into the current screen, and the user needs to execute some sliding operations to check the hidden widget interface.
Optionally, when a viewing instruction is received, displaying the widget view loaded with the position information located outside the display range of the current screen in the current screen of the electronic device.
The method for loading the widget comprises the steps of firstly obtaining widget layout frame information, wherein the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information which is located outside the current screen range of the electronic equipment; then modifying the widget type of the system of the electronic equipment, and acquiring widget content parameters based on the modified widget type; then loading the widget views corresponding to the widget content parameters on the one or more widget view position information; and finally, when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, loading the widget views in the position information outside the current screen range. By setting one or more pieces of widget view position information to be loaded in the widget layout frame information, the same number of widgets as the widget view position information can be added into the project for display, the limitation of the original screen on widget loading is broken, and the requirement of a user for adding any number of widgets is met.
Another embodiment of the present invention provides a method for loading a widget, where the method is suitable for adding a widget on a screen of an electronic device, and an existing widget cannot increase the display quantity of the widget or set the style of the widget in a diversified manner. As shown in fig. 2, the method includes:
step 201: and loading the widget layout frame information in the desktop through the circulation view control.
And the cycle view control is a sliding control in the android system. After the widget layout frame information is loaded through the circulation view control, one widget view can be loaded on each widget view position information in the widget layout frame information, the widget view position information can be arranged in a sequential mode, for example, the widget view position information can be a column of square positions from top to bottom or a plurality of columns of square positions from top to bottom, each square position corresponds to one widget view position information, each square position can be loaded with one widget view, and the widget views are displayed on a screen, namely a display interface and an interaction interface of the widget. The widget view position information can slide up and down/left and right on the screen according to the sliding instruction, and the widget to be displayed can be displayed on the screen after sliding. The specific arrangement of the widget view position information is not limited herein, and all feasible arrangement and combination manners can be applied to the embodiment of the present invention.
Step 202: widgets displayed on the system desktop as needed add widget types to the system.
When a type of widget needs to be added on a system desktop, the type of the widget needs to be added into the system, so that the type of the widget can be configured, and the widget can be normally displayed after the subsequent widget is loaded. The widget type is a parameter of the widget for identifying a hierarchical position of the widget displayed on the screen, and for example, the widget type may include the following three types: displayed at the desktop position (WIDGET CATEGORY HOME SCREEN), displayed on the SCREEN locking interface (WIDGETATEGORY KEYGUARD), and used as a search control (WIDGET CATEGORY SEARCHEBOX).
Step 203: and searching a widget list of the system in the desktop according to the added widget type.
The widget list is a list of a set of widget content parameters with the same type as the type of the added widget, a data interface is provided in the Android system, and the widget list meeting the conditions can be searched according to the type of the widget.
Step 204: and analyzing the widget information in the widget list, and updating the widget content parameters in the database according to the widget information.
Optionally, after the system widget list is obtained, the widgets in the list need to be filtered. Firstly, analyzing a widget list to obtain a widget name list included in the list; after the widget name list is obtained, the configuration information of each widget in the list is verified, and the widget with the safety degree lower than the threshold value in the list is deleted, so that the system can normally run after the widget is loaded. For example, the case where the degree of safety is lower than the threshold includes: the stability of the widget is poor, and errors are easy to occur during loading; or, the widget contains illegal virus information; alternatively, the widget is not compatible with the system of the terminal. The case where the safety degree is lower than the threshold value may include, but is not limited to, the above-mentioned case, and the case where the safety degree is lower than the threshold value is not particularly limited herein.
Further, updating the widget content parameters in the database includes: and acquiring a widget list in the database, comparing the widget list of the system with the widget information in the widget list of the database, deleting the widget information which does not exist in the widget list of the system in the widget list of the database, and adding the widget information which exists in the widget list of the system but is not recorded in the widget list of the database, thereby finishing the updating of the database.
The process of updating the database is the process of acquiring the widget content parameters from the database by the electronic device, and the accurate widget content parameters can be ensured to be acquired through synchronous updating of the database.
Step 205: after the widget content parameters are acquired, the widget list of the system is set to the circulation view control to serve as a data source of the circulation view.
Optionally, the loading of the data by the circulation view control is implemented by a circulation view adapter, and after the system widget list is obtained, the system widget list is set in the circulation view adapter as a data source of the circulation view. Corresponding widget data are acquired according to the system widget list before, so that the system widget list is only required to be used as a data source, and the corresponding widget data can be loaded according to the system widget list during subsequent loading.
Step 206: and creating a widget view matched with the system parameter information in a view creation carrier in the circulation view adapter.
Optionally, when the widget view is created according to the data source, the format of the data source is not simply displayed directly, because there is a possibility that the format of the data source is not matched with the screen parameters of the electronic device and the parameters of the widget layout frame information, in order to enable the widget view to be displayed in the widget layout frame information normally, the widget view needs to be adjusted according to the preset configuration information.
Optionally, when the layout of the widget is adjusted, the style of the widget view may be set in a user-defined manner on the premise that the configuration information is satisfied. For example, the layout style of the system, including a desktop style, a wallpaper style, a body style, a screen locking style and the like, is acquired, and the widget view is configured based on the layout style, so that the style of the widget view is matched with the interface style where the widget view is located. Or, the style of the widget view can be set according to the user-defined configuration so as to meet the personalized requirements.
Optionally, when the widget layout is adjusted, the following embodiments are included but not limited to: acquiring system desktop parameters and screen display parameters; and determining the brightness, transparency, color and the like of the widget view according to the desktop parameters, determining the size, position and interactive layout of the widget view according to the screen display parameters, and displaying the determined widget view.
For example, the determining of the brightness, transparency, color, and the like of the widget view according to the desktop parameters may specifically be: when the brightness of the desktop level needing to add the widget is high, the brightness of the widget view is also adjusted to be high, or the brightness of the widget view can be adjusted according to the light of the external environment. When the transparency of the desktop level that needs to add the widget is 50%, the transparency of the widget view is also adjusted to be consistent with 50%. And adjusting the color of the widget view according to the color of the desktop position where the widget view is located, so that the adjusted color is adaptive to the color of the desktop position where the widget view is located.
The embodiment of the invention provides a widget loading method, wherein widget layout frame information in a desktop is loaded through a circulation view control, each widget view position information in the circulation view control can be loaded with one widget view, the widget view position information can slide up and down on a screen according to a sliding instruction, and widgets which are not displayed outside the screen range can be displayed on the screen. In addition, after the widget data source is acquired, a widget view matching the configuration information can be created in a view creation carrier in the cycle view adapter. The style of the widget view can be customized, and the personalized requirements of users on the widgets are met.
Another embodiment of the present invention provides a loading apparatus 30 for a widget, as shown in fig. 3, the loading apparatus 30 for a widget includes:
the layout unit 31 is configured to obtain widget layout frame information, where the widget layout frame information includes one or more pieces of widget view position information to be loaded, and the widget view position information includes position information located outside a current screen range of the electronic device;
an obtaining unit 32, configured to modify a widget type of a system of the electronic device, and obtain a widget content parameter based on the modified widget type;
a loading unit 33, configured to load a widget view corresponding to the widget content parameter on the one or more widget view location information; and loading the widget views at the position information outside the current screen range when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment.
Further, as shown in fig. 4, the apparatus 30 further includes:
the analysis unit 34 is configured to receive and analyze an add instruction, and obtain widget type information carried in the add instruction;
the obtaining unit 32 is further configured to set the widget type of the system of the electronic device to the widget type corresponding to the widget type information carried by the add instruction based on the widget type information obtained by the analyzing unit 34.
The obtaining unit 32 is specifically configured to:
configuring the widget type of the widget required to be loaded on the desktop of the electronic equipment as the widget type of a system of the electronic equipment; acquiring a first widget list corresponding to the widget type of the system, wherein the first widget list comprises widget information matched with the widget type of the system; analyzing the widget information in the first widget list, and updating the widget content parameters according to the widget information; and acquiring the updated widget content parameters.
Further, the obtaining unit 32 is further configured to:
checking configuration information corresponding to the widget information in the first widget list, and filtering widgets with the security degree lower than a threshold value; acquiring a second widget list stored in a database, wherein the second widget list comprises widget information stored in the database; replacing the second widget list with the first widget list.
Further, as shown in fig. 4, the apparatus 30 further includes:
the protocol unit 35 is used for determining a configuration analysis protocol of the widget based on the screen parameter of the electronic equipment;
the loading unit 33 is further configured to: based on the configuration analysis protocol determined by the protocol unit 35, the widget content parameter is configured, and a widget view corresponding to the configured widget content parameter is loaded.
Further, as shown in fig. 4, the apparatus 30 further includes:
and the display unit 36 is configured to, when receiving a viewing instruction, display the widget view loaded with the position information located outside the display range of the current screen in the current screen of the electronic device.
The loading device of the widget provided by the embodiment of the invention firstly obtains widget layout frame information, wherein the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information which is positioned outside the current screen range of the electronic equipment; then modifying the widget type of the system of the electronic equipment, and acquiring widget content parameters based on the modified widget type; then loading the widget views corresponding to the widget content parameters on the one or more widget view position information; and finally, when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, loading the widget views in the position information outside the current screen range. By setting one or more pieces of widget view position information to be loaded in the widget layout frame information, the same number of widgets as the widget view position information can be added into the project for display, the limitation of the original screen on widget loading is broken, and the requirement of a user for adding any number of widgets is met.
Another embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the loading method of the widget provided by the above method embodiments, including:
acquiring widget layout frame information, wherein the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information outside the current screen range of the electronic equipment;
modifying the widget type of a system of the electronic equipment, and acquiring widget content parameters based on the modified widget type;
loading the widget views corresponding to the widget content parameters on the one or more widget view position information;
and when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, loading the widget views at the position information outside the current screen range.
Another embodiment of the present invention provides a non-transitory computer-readable storage medium, which stores computer instructions, the computer instructions causing the computer to execute the method for loading widgets provided by the above method embodiments, including:
acquiring widget layout frame information, wherein the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information outside the current screen range of the electronic equipment;
modifying the widget type of a system of the electronic equipment, and acquiring widget content parameters based on the modified widget type;
loading the widget views corresponding to the widget content parameters on the one or more widget view position information;
and when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, loading the widget views at the position information outside the current screen range.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device 10 according to another embodiment of the present invention, where as shown in fig. 5, the electronic device 10 includes:
one or more processors 11 and a memory 12, with one processor 11 being an example in fig. 5.
The device for executing the wallpaper loading method may further include: an input device 13 and an output device 14.
The processor 11, the memory 12, the input device 13 and the output device 14 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The memory 12, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the wallpaper loading method in this embodiment. The processor 11 executes various functional applications and data processing of the server by running non-transitory software programs, instructions and modules stored in the memory 12, that is, implementing the wallpaper loading method of the above method embodiment.
The memory 12 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the wallpaper loading device, and the like. Further, the memory 12 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 12 may optionally include memory located remotely from processor 11, which may be connected to the wallpaper loading device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 13 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the wallpaper loading device. The output device 14 may include a display device such as a display screen.
The one or more modules are stored in the memory 12 and when executed by the one or more processors 11 perform the wallpaper loading method in any of the method embodiments described above.
The product can execute the method provided by the embodiment and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the present embodiment exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a general hardware platform, and may also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; within the context of the present application, where technical features in the above embodiments or in different embodiments can also be combined, the steps can be implemented in any order and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A method for loading widgets, applied to electronic equipment, is characterized by comprising the following steps:
acquiring widget layout frame information, wherein the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information outside the current screen range of the electronic equipment;
modifying the widget type of a system of the electronic equipment, and acquiring widget content parameters based on the modified widget type;
loading the widget views corresponding to the widget content parameters on the one or more widget view position information;
and when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment, loading the widget views at the position information outside the current screen range.
2. The method for loading widgets of claim 1, wherein prior to said modifying the widget type of the system of the electronic device, the method further comprises:
receiving and analyzing an adding instruction to obtain widget type information carried in the adding instruction;
the modifying the widget type of the system of the electronic device comprises:
and setting the widget type of the system of the electronic equipment as the widget type corresponding to the widget type information carried by the adding instruction based on the widget type information.
3. The widget loading method according to claim 1 or 2, wherein the obtaining widget content parameters based on the modified widget type comprises:
configuring the widget type of the widget required to be loaded on the desktop of the electronic equipment as the widget type of a system of the electronic equipment;
acquiring a first widget list corresponding to the widget type of the system, wherein the first widget list comprises widget information matched with the widget type of the system;
analyzing the widget information in the first widget list, and updating the widget content parameters according to the widget information;
and acquiring the updated widget content parameters.
4. The widget loading method according to claim 3, wherein the parsing the widget information in the first widget list and updating the widget content parameter according to the widget information includes:
checking configuration information corresponding to the widget information in the first widget list, and filtering widgets with the security degree lower than a threshold value;
acquiring a second widget list stored in a database, wherein the second widget list comprises widget information stored in the database;
replacing the second widget list with the first widget list.
5. The method for loading the widget according to claim 1, wherein before loading the widget view corresponding to the widget content parameter on the one or more widget view location information, the method further comprises:
determining a configuration resolution protocol of a widget based on screen parameters of the electronic equipment;
then, the loading the widget view corresponding to the widget content parameter on the one or more widget view location information includes:
and configuring the widget content parameters based on the configuration analysis protocol, and loading the widget view corresponding to the configured widget content parameters.
6. The widget loading method according to claim 1, wherein after loading the widget view with the position information located outside the current screen scope, the method further comprises:
and when a viewing instruction is received, displaying the widget view loaded with the position information out of the display range of the current screen in the current screen of the electronic equipment.
7. An apparatus for loading widgets, the apparatus comprising:
the layout unit is used for acquiring widget layout frame information, the widget layout frame information comprises one or more pieces of widget view position information to be loaded, and the widget view position information comprises position information located outside the current screen range of the electronic equipment;
the acquisition unit is used for modifying the widget type of the system of the electronic equipment and acquiring widget content parameters based on the modified widget type;
the loading unit is used for loading the widget views corresponding to the widget content parameters on the one or more widget view position information; and loading the widget views at the position information outside the current screen range when the area occupied by loading all the widget views exceeds the screen range of the electronic equipment.
8. The widget loading device according to claim 7, further comprising:
the analysis unit is used for receiving and analyzing the adding instruction to obtain the widget type information carried in the adding instruction;
the obtaining unit is further configured to set a widget type of a system of the electronic device to a widget type corresponding to the widget type information carried by the add instruction based on the widget type information.
9. The widget loading device according to claim 7 or 8, wherein the obtaining unit is specifically configured to:
configuring the widget type of the widget required to be loaded on the desktop of the electronic equipment as the widget type of a system of the electronic equipment;
acquiring a first widget list corresponding to the widget type of the system, wherein the first widget list comprises widget information matched with the widget type of the system;
analyzing the widget information in the first widget list, and updating the widget content parameters according to the widget information;
and acquiring the updated widget content parameters.
10. The widget loading device according to claim 9, wherein the obtaining unit is further configured to:
checking configuration information corresponding to the widget information in the first widget list, and filtering widgets with the security degree lower than a threshold value;
acquiring a second widget list stored in a database, wherein the second widget list comprises widget information stored in the database;
replacing the second widget list with the first widget list.
11. The widget loading device according to claim 7, further comprising:
the protocol unit is used for determining a configuration analysis protocol of the widget based on the screen parameter of the electronic equipment;
the load unit is further configured to: and configuring the widget content parameters based on the configuration analysis protocol, and loading the widget view corresponding to the configured widget content parameters.
12. The widget loading device according to claim 7, further comprising:
and the display unit is used for displaying the widget view loaded with the position information out of the display range of the current screen in the current screen of the electronic equipment when a viewing instruction is received.
CN201710005864.6A 2017-01-04 2017-01-04 The loading method and device of widget Pending CN106886435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710005864.6A CN106886435A (en) 2017-01-04 2017-01-04 The loading method and device of widget

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710005864.6A CN106886435A (en) 2017-01-04 2017-01-04 The loading method and device of widget

Publications (1)

Publication Number Publication Date
CN106886435A true CN106886435A (en) 2017-06-23

Family

ID=59176395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710005864.6A Pending CN106886435A (en) 2017-01-04 2017-01-04 The loading method and device of widget

Country Status (1)

Country Link
CN (1) CN106886435A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399086A (en) * 2018-03-12 2018-08-14 中汇信息技术(上海)有限公司 A kind of widget management method, server and computer readable storage medium
CN109614191A (en) * 2018-12-07 2019-04-12 上海商米科技有限公司 The processing method and processing device of application
CN115309470A (en) * 2022-07-13 2022-11-08 百度在线网络技术(北京)有限公司 Method, device and equipment for loading widgets and storage medium
CN116700813A (en) * 2022-09-30 2023-09-05 荣耀终端有限公司 Method for loading widget, electronic device and readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399086A (en) * 2018-03-12 2018-08-14 中汇信息技术(上海)有限公司 A kind of widget management method, server and computer readable storage medium
CN109614191A (en) * 2018-12-07 2019-04-12 上海商米科技有限公司 The processing method and processing device of application
CN115309470A (en) * 2022-07-13 2022-11-08 百度在线网络技术(北京)有限公司 Method, device and equipment for loading widgets and storage medium
CN116700813A (en) * 2022-09-30 2023-09-05 荣耀终端有限公司 Method for loading widget, electronic device and readable storage medium
CN116700813B (en) * 2022-09-30 2024-05-24 荣耀终端有限公司 Method for loading widget, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN110795195B (en) Webpage rendering method and device, electronic equipment and storage medium
CN110020292B (en) Webpage content extraction method and terminal equipment
US10565293B2 (en) Synchronizing DOM element references
US9948700B2 (en) ADFDI support for custom attribute properties
US10379819B2 (en) Generic editor layout using intrinsic persistence metadata
US9015657B2 (en) Systems and methods for developing and delivering platform adaptive web and native application content
CN111767554B (en) Screen sharing method and device, storage medium and electronic equipment
US20170083495A1 (en) Method for Modifying Webpage and Apparatus for Modifying Webpage
CN106886435A (en) The loading method and device of widget
CN107133199B (en) Acquiring font parts using a compression mechanism
US9459863B2 (en) System for assessing an application for tablet compatibility and quality
KR20130018926A (en) Method and device for processing widget system appearance
US8651951B2 (en) Game processing server apparatus
US20170134364A1 (en) Note update method and device
CN112068923B (en) Interface updating method and device
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN115309470A (en) Method, device and equipment for loading widgets and storage medium
CN111580808A (en) Page generation method and device, computer equipment and storage medium
CN112783660B (en) Resource processing method and device in virtual scene and electronic equipment
CN108491232B (en) Method and system for loading control on voice conversation platform
US11442606B2 (en) User interface interaction method and system
CN109684570A (en) Web information processing method and device
US20190196794A1 (en) Visual programming method, system and terminal device
CN114330353B (en) Entity identification method, device, equipment, medium and program product of virtual scene
CN109992737A (en) Third party's web page contents checking method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170623