CN117215687A - Method, device and storage medium for displaying other widgets in widget - Google Patents

Method, device and storage medium for displaying other widgets in widget Download PDF

Info

Publication number
CN117215687A
CN117215687A CN202311026105.XA CN202311026105A CN117215687A CN 117215687 A CN117215687 A CN 117215687A CN 202311026105 A CN202311026105 A CN 202311026105A CN 117215687 A CN117215687 A CN 117215687A
Authority
CN
China
Prior art keywords
widget
target
container
added
identifier
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
CN202311026105.XA
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202311026105.XA priority Critical patent/CN117215687A/en
Publication of CN117215687A publication Critical patent/CN117215687A/en
Pending legal-status Critical Current

Links

Abstract

According to the method, the device and the storage medium for displaying other widgets in the widget, the target widget is provided with the container layout, the container layout comprises at least one container, when an adding instruction of the widget to be added is acquired through a display interface of the target widget, the widget identification of the widget to be added can be determined based on the adding instruction, the widget to be added is loaded on a desktop starter according to the widget identification, and when the target container allowing the widget to be added is included in the container, the widget to be added is displayed in the target container of the target widget, so that the problem of how to display other widgets in the widget can be solved, the function of the target widget is richer, the display content is more comprehensive, the user can use the widget conveniently, and the user experience is improved.

Description

Method, device and storage medium for displaying other widgets in widget
Technical Field
The application relates to the technical field of widgets, in particular to a method, a device and a storage medium for displaying other widgets in a widget.
Background
Widget (Widget) is a lightweight user interface space, which can display different personalized information for users, and users can conveniently and rapidly browse information such as weather, news, picture libraries and the like through Widget, and meanwhile, widget is an important entry interface provided for users by application. However, due to the limitation of the Widget mechanism, only an application entry can be presented on the Widget, the content of other widgets cannot be displayed, and the display effect is not rich.
Disclosure of Invention
The embodiment of the application provides a method, a device and a storage medium for displaying other widgets in a Widget, which at least solve the problem of how to display other widgets in the Widget in the related art.
According to one embodiment of the present application, there is provided a method for displaying other widgets in a widget, including:
acquiring an adding instruction of a widget to be added on a display interface of a target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container;
determining a widget identifier of the widget to be added based on the adding instruction;
loading the widget to be added in a desktop starter based on the widget identifier;
in the case that the at least one container comprises a target container, displaying the widget to be added in the target container; wherein the target container is a container allowing the adding of the widget to be added.
According to another embodiment of the present application, there is provided an apparatus for displaying other widgets in a widget, including:
the acquisition module is used for acquiring an adding instruction of the widget to be added on a display interface of the target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container;
the determining module is used for determining the widget identifier of the widget to be added based on the adding instruction;
the loading module is used for loading the widget to be added in the desktop starter based on the widget identifier;
the widget display module is used for displaying the widget to be added in the target container under the condition that the target container is included in the at least one container; wherein the target container is a container allowing the adding of the widget to be added.
According to a further embodiment of the application, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, the adding instruction of the widget to be added is obtained on the display interface of the target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container; determining a widget identifier of the widget to be added based on the adding instruction; loading the widget to be added in a desktop starter based on the widget identifier; in the case that the at least one container comprises a target container, displaying the widget to be added in the target container; wherein the target container is a container allowing the adding of the widget to be added. According to the method, the target widget is configured with the container layout, at least one container is included in the container layout, when the display interface of the target widget obtains the adding instruction of the widget to be added, the widget identifier of the widget to be added can be determined based on the adding instruction, the widget to be added is loaded on the desktop starter according to the widget identifier, and when the container includes the target container allowing the widget to be added, the widget to be added is displayed in the target container of the target widget, so that the problem of how to display other widgets in the widget can be solved, the functions of the target widget are richer, the display content is more comprehensive, the user is convenient to use, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for displaying other widgets in a widget according to one embodiment of the present application;
FIG. 3 is a schematic diagram showing the effect of a method for displaying other widgets in a widget according to one embodiment of the present application;
FIG. 4 is a flow chart of a method for displaying other widgets in a widget according to another embodiment of the present application;
FIG. 5 is an effect diagram of a method for displaying other widgets in a widget according to one embodiment of the present application;
fig. 6 is a schematic structural diagram of a device for displaying other widgets in a widget according to an embodiment of the present application.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
An embodiment of the method provided by an embodiment of the present application may be performed in a mobile terminal, a computer terminal or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal, in which a method for displaying other widgets in the widgets according to an embodiment of the present application. As shown in fig. 1, the mobile terminal 10 may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, such as software programs and modules of application software, such as computer programs corresponding to methods for exposing other widgets in the widgets according to the embodiments of the present application, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, i.e. implement the methods described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 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 transmission means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for displaying other widgets in a widget running in the mobile terminal is provided, and fig. 2 is a flowchart of a method for displaying other widgets in a widget according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S202, acquiring an adding instruction of a widget to be added on a display interface of a target widget, wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container.
The input adding instruction of the widget to be added can be obtained on the display interface of the target widget, for example, the widget to be added can be selected from the menu bar by long-pressing the calling menu bar, or the widget to be added can be selected by inputting a command, and the determined instruction after the selection is completed is used as the adding instruction without limitation.
The widget to be added can be selected from a recommendation list generated according to the widget usage data, for example, the called menu bar is the recommendation list, and the widget interested by the user can also be selected. The widget usage data may be the counted number of times of usage, duration of usage, etc. of each widget in the user terminal. In addition, the widget to be added does not include the target widget, that is, the target widget itself cannot be re-nested in the target widget so as not to cause a system internal reference loop error.
The container layout of each target Widget (i.e., target Widget) that is preconfigured may be different, for example, the container layout of target Widget a is 4×4, and the container may be 2×2, 1×1, or other sizes, without limitation. The container layout of the target Widget a may include a plurality of containers, where some containers may be used to display other widgets (i.e. other widgets), and the containers used to display other widgets may be referred to as target containers, and some containers may be used to display icons of applications, etc., and of course, the target container may also be used as a container for displaying icons of applications, without limitation.
The layout of the container and the size of the container are all exemplified, and the size of the container is not limited, and the container can be determined according to the setting of the widget itself or according to the need in practical application, and is not limited.
Step S204, based on the adding instruction, determining the widget identifier of the widget to be added.
The widget identifier to be added with the widget may be an indication identifier such as an identifier ID, a name, etc., without limitation.
Step S206, loading the widget to be added in the desktop launcher based on the widget identifier.
The desktop Launcher is an android system desktop Launcher (Launcher), and the to-be-added widget can be loaded in the desktop Launcher according to the widget identifier.
When the container layout of the target widget is preconfigured, the data identifier of the widget to be added can be configured for the container in the container layout, and the container configured with the data identifier is called the target container. For example, the data identifier may be a text box identifier, which may not be displayed by default, and does not affect the visual experience when no widget corresponding to the data identifier is added.
In one embodiment, loading the widget to be added in the desktop launcher based on the widget identifier comprises: traversing the container layout of the target widget based on the widget identifier and a preset mapping relation, searching the data identifier corresponding to the widget identifier, and loading the widget to be added corresponding to the data identifier.
In this embodiment, the preset mapping relationship is a mapping relationship between a widget identifier and a data identifier, and after the data identifier of the widget to be added is configured for a container in the container layout, the mapping relationship between the widget identifier and the data identifier may be generated according to the specific configuration, so that when the target widget adds the widget to be added, the widget to be added corresponding to the data identifier may be loaded according to the mapping relationship.
In one embodiment, the data identifier includes a text box identifier, traversing a container layout of the target widget based on the widget identifier and a preset mapping relationship, and searching the data identifier corresponding to the widget identifier, including: based on the widget identifications and a preset mapping relation, determining a text box identification corresponding to the widget identifications, traversing all views of the target widget based on the text box identifications, and determining a target text box matched with the text box identifications.
Correspondingly, loading the widget to be added corresponding to the data identifier comprises the following steps: and loading the widget to be added corresponding to the target text box.
In this embodiment, container layout and data identifier are configured for a target Widget in a Widget application, and widgets of other applications are created and loaded on a desktop initiator, specifically, when other widgets are created, the desktop initiator may determine a text box identifier corresponding to the Widget identifier based on the Widget identifier and a preset mapping relationship, determine a target text box matching with the text box identifier by traversing all views of the target Widget, create other corresponding widgets according to the target text box, and load the other widgets into containers of target widgets corresponding to the target text box and display the containers, so that after the widgets of other applications are added in the target Widget, supportable functions on the target Widget can be greatly enriched, and a more focused use experience is provided for a user.
In one embodiment, before determining a target text box that matches the text box identification based on traversing all views of the target widget for the text box identification, the method further comprises: and determining a target sub-class from the micro-component host view class, wherein the micro-component support loaded by using the target sub-class displays the micro-component to be added, and taking the micro-component loaded based on the target sub-class as a target micro-component.
In this embodiment, the desktop may first obtain a target subclass when creating a host view HostView of a Widget, where the target subclass may be a custom subclass in a Widget host view class, for example, obtain a custom subclass suggestwidthastview in a desktop initiator application Widget host view launchenappwidthastview, to load a Widget (i.e., a target Widget) that needs special processing, and distinguish from other widgets. It should be appreciated that since each target widget supporting the presentation of other widgets is loaded by a target subclass, the desktop initiator can facilitate identifying all of the target widgets in the widget.
And step S208, in the case that at least one container comprises a target container, displaying the to-be-added widget in the target container, wherein the target container is a container allowing the to-be-added widget to be added.
In one embodiment, the case where the target container is included in at least one container may include the following two cases.
In the first case, if at least one container comprises a free container, displaying the widget to be added in the free container.
In this embodiment, the container includes a free container, that is, the container does not display any widget or view, and the widget to be added may be displayed directly in the free container.
And in the second case, if at least one container does not comprise a free container and the target container comprises other widgets, displaying the widgets to be added in the target container.
In this embodiment, the container does not include a free container, but includes a target container, and the target container includes other widgets, in which case the widget to be added is displayed in the target container.
In this embodiment, the other widgets include a first widget corresponding to a widget identifier and a second widget corresponding to a non-widget identifier. If at least one container does not include a free container and the target container includes other widgets, displaying the widget to be added in the target container, including:
if the target container comprises the second widget, removing the second widget, and displaying the widget to be added in the target container;
if the target container comprises the first widget, updating the first widget according to the widget data carried by the widget to be added, and displaying the updated first widget as the widget to be added.
In this embodiment, whether the container contains other widgets is determined, if the container includes a second widget, the second widget is removed, and the data identifier corresponding to the second widget is deleted. If the first widget is already included in the container, the creation is not required to be repeated, and the specific content of the first widget is only required to be updated. The schematic diagram of the displayed effect is shown in fig. 3, and other widgets can be displayed on the target widget.
Through the steps, as the target widget is configured with the container layout and at least one container is included in the container layout, when the display interface of the target widget obtains the adding instruction of the widget to be added, the widget identifier of the widget to be added can be determined based on the adding instruction, the widget to be added is loaded on the desktop starter according to the widget identifier, and when the container includes the target container allowing the widget to be added, the widget to be added is displayed in the target container of the target widget, so that the problem of how to display other widgets in the widget can be solved, the function of the target widget is richer, the display content is more comprehensive, the user is convenient to use, and the user experience is improved.
Alternatively, the mobile terminal of the execution subject of the above steps may be, but not limited to, a mobile phone, a tablet computer, a notebook computer, a palm top computer, a PDA (Personal Digital Assistant, a personal digital assistant), a PMP (Portable Media Player, a portable multimedia player), and the like.
In one embodiment, after the other widgets are displayed in the container, the method further comprises: storing the widget identifier in a preset position, deleting the target widget identifier corresponding to the third widget from the preset position under the condition that a first deleting instruction of the third widget in the target widget is acquired, and deleting the third widget from the target widget under the condition that a second deleting instruction of the target widget identifier in the preset position is acquired.
In this embodiment, a Widget identifier (appwidgets id) generated by a system when the Widget is created is critical, the appwidgets id may be stored in the system, so that the system carries a live Widget application process, updates the Widget, and a desktop may store some other information of the Widget and the appwidgets id, so as to avoid creating many useless widgets in the system and causing unnecessary live applications. Other information and appWidgetId in the target Widget are bound with the target Widget when the target Widget is stored, and after the target Widget is deleted, the other information and appWidgetId in the target Widget are deleted. In addition, when the desktop deletes the useless appWidgetId, whether the WidgetId is other Widgets in the target Widget is judged, if so, the Widget cannot be deleted, and otherwise, the Widget cannot be updated normally.
In one embodiment, the core steps of the method for displaying other widgets in the Widget are as shown in fig. 4, and the layout of the icon container is provided when the Widget application updates the Widget, and the data identifier of the icon is set. And when the desktop starter receives the Widget update, traversing all layouts in the Widget, finding out the data identifier, loading the corresponding other widgets according to the data identifier desktop, and displaying the corresponding other widgets.
Specifically, the Widget application is taken as an example of the smart advice application, as shown in fig. 5, the container layout of other widgets is provided when the Widget application updates the widgets, and the data identifier of the other widgets is set. When the desktop receives the update of the target Widget, traversing all layouts in the target Widget, finding out the identifier, loading the corresponding data desktop and displaying the corresponding other widgets.
When creating the HostView of the target Widget, the target Widget is loaded using a custom subclass of the LaunchelAPWidgetHostView (e.g., suggestWidgetHostView) to distinguish from other Widgets. When the target Widget is updated, the desktop traverses all views in the target Widget, finds out the TextView with the id of which is the beginning of the other_Widget_tag_text, acquires the data identification of other Widgets, and creates and loads other Widgets into the parent layout (container) of the TextView. If the other widgets exist in the current container, the current container is updated only without repeated creation, and if other widgets which are not identified by the data exist, a system method is called to remove the existing widgets and delete the corresponding ids.
After widgets of other applications are added into the target Widget, supportable functions on the target Widget can be greatly enriched, more careful use experience is provided for a user, and as for the widgets of which other applications are added, the widgets can be pushed according to habit of the user, or the user can select the desired widgets for adding without limitation.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
In an embodiment of the present application, a device for displaying other widgets in a widget is further provided, and the device is used to implement the foregoing embodiment and the preferred implementation, which have been described and will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 6 is a block diagram of an apparatus for displaying other widgets among widgets according to an embodiment of the present application, as shown in FIG. 6, the apparatus comprising:
the obtaining module 602 is configured to obtain an adding instruction of a widget to be added on a display interface of a target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container;
a determining module 604, configured to determine, based on the adding instruction, a widget identifier of the widget to be added;
a loading module 606, configured to load the widget to be added in a desktop launcher based on the widget identifier;
a widget display module 608, configured to display, in a case where the at least one container includes a target container, the widget to be added in the target container; wherein the target container is a container allowing the adding of the widget to be added.
According to the device, the target widget is configured with the container layout, at least one container is included in the container layout, when the display interface of the target widget obtains the adding instruction of the widget to be added, the widget identifier of the widget to be added can be determined based on the adding instruction, the widget to be added is loaded on the desktop starter according to the widget identifier, and when the container includes the target container allowing the widget to be added, the widget to be added is displayed in the target container of the target widget, so that the problem of how to display other widgets in the widget can be solved, the functions of the target widget are richer, the display content is more comprehensive, the user is convenient to use, and the user experience is improved.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
An embodiment of the application also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
acquiring an adding instruction of a widget to be added on a display interface of a target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container;
determining a widget identifier of the widget to be added based on the adding instruction;
loading the widget to be added in a desktop starter based on the widget identifier;
in the case that the at least one container comprises a target container, displaying the widget to be added in the target container; wherein the target container is a container allowing the adding of the widget to be added.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above. The memory 104 in fig. 1 is taken as an example of a memory in the electronic device.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
acquiring an adding instruction of a widget to be added on a display interface of a target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container;
determining a widget identifier of the widget to be added based on the adding instruction;
loading the widget to be added in a desktop starter based on the widget identifier;
in the case that the at least one container comprises a target container, displaying the widget to be added in the target container; wherein the target container is a container allowing the adding of the widget to be added.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of displaying other widgets in a widget, the method comprising:
acquiring an adding instruction of a widget to be added on a display interface of a target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container;
determining a widget identifier of the widget to be added based on the adding instruction;
loading the widget to be added in a desktop starter based on the widget identifier;
in the case that the at least one container comprises a target container, displaying the widget to be added in the target container; wherein the target container is a container allowing the adding of the widget to be added.
2. The method of claim 1, wherein in the case where the at least one container includes a target container, displaying the widget to be added in the target container includes:
if the at least one container comprises an idle container, displaying the widget to be added in the idle container;
or,
and if the at least one container does not comprise the idle container and the target container comprises other widgets, displaying the widget to be added in the target container.
3. The method of claim 2, wherein the other widgets include a first widget corresponding to the widget identifier and a second widget corresponding to a non-widget identifier; and if the at least one container does not comprise the idle container and the target container comprises other widgets, displaying the widget to be added in the target container, wherein the method comprises the following steps:
if the target container comprises the second widget, removing the second widget, and displaying the widget to be added in the target container;
if the target container comprises the first widget, updating the first widget according to the widget data carried by the widget to be added, and displaying the updated first widget as the widget to be added.
4. The method of claim 1, wherein after the widget to be added is displayed in the target container, the method further comprises:
storing the widget identifier at a preset position;
deleting a target widget identifier corresponding to a third widget from the preset position under the condition that a first deleting instruction of the third widget in the target widget is acquired;
and deleting the third widget from the target widget under the condition that a second deleting instruction of the target widget identifier in the preset position is acquired.
5. The method according to claim 1, wherein the target container is a container in which the data identification of the widget to be added is preconfigured; loading the widget to be added in a desktop starter based on the widget identifier, including:
traversing the container layout of the target widget based on the widget identifier and a preset mapping relation, and searching the data identifier corresponding to the widget identifier; the preset mapping relation is the mapping relation between the widget identifier and the data identifier;
and loading the widget to be added corresponding to the data identifier.
6. The method of claim 5, wherein the data identification comprises a text box identification; traversing the container layout of the target widget based on the widget identifier and a preset mapping relation, searching the data identifier corresponding to the widget identifier, including:
determining the text box identifier corresponding to the widget identifier based on the widget identifier and the preset mapping relation;
determining a target text box matching the text box identifier based on the text box identifier traversing all views of the target widget;
correspondingly, loading the widget to be added corresponding to the data identifier comprises the following steps:
and loading the widget to be added corresponding to the target text box.
7. The method of claim 6, wherein prior to determining a target text box that matches the text box identification based on the text box identification traversing all views of the target widget, the method further comprises:
determining a target subclass from the widget host view class; wherein, the widget support loaded by the target subclass displays the widget to be added;
and taking the widget loaded based on the target subclass as the target widget.
8. An apparatus for displaying other widgets in a widget, the apparatus comprising:
the acquisition module is used for acquiring an adding instruction of the widget to be added on a display interface of the target widget; wherein the widget to be added does not comprise the target widget, and the container layout of the target widget comprises at least one container;
the determining module is used for determining the widget identifier of the widget to be added based on the adding instruction;
the loading module is used for loading the widget to be added in the desktop starter based on the widget identifier;
the widget display module is used for displaying the widget to be added in the target container under the condition that the target container is included in the at least one container; wherein the target container is a container allowing the adding of the widget to be added.
9. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when run.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of claims 1 to 7.
CN202311026105.XA 2023-08-15 2023-08-15 Method, device and storage medium for displaying other widgets in widget Pending CN117215687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311026105.XA CN117215687A (en) 2023-08-15 2023-08-15 Method, device and storage medium for displaying other widgets in widget

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311026105.XA CN117215687A (en) 2023-08-15 2023-08-15 Method, device and storage medium for displaying other widgets in widget

Publications (1)

Publication Number Publication Date
CN117215687A true CN117215687A (en) 2023-12-12

Family

ID=89039781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311026105.XA Pending CN117215687A (en) 2023-08-15 2023-08-15 Method, device and storage medium for displaying other widgets in widget

Country Status (1)

Country Link
CN (1) CN117215687A (en)

Similar Documents

Publication Publication Date Title
CN105867714B (en) Application program method for down loading, apparatus and system
CN108197311B (en) House source data aggregation display method, device and equipment and readable storage medium
US9288279B2 (en) Method and system for providing a content based on preferences
US20150116540A1 (en) Method and apparatus for applying a tag/identification to a photo/video immediately after capture
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
CN102932523A (en) Systems and methods for incorporating a control connected media frame
US20170277526A1 (en) Software categorization method and electronic device
CN106383633A (en) Application icon replacement method and apparatus
CN104679900A (en) Application program searching method and device
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
CN110609957A (en) Method, terminal and server for global search
CN114327349A (en) Method and device for determining smart card, storage medium and electronic device
KR102205686B1 (en) Method and apparatus for ranking candiate character and method and device for inputting character
CN110008460A (en) Information edit method, device, equipment and computer storage medium
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium
CN105512260A (en) E-book multi-segment excerpt sharing method and device
US8655865B1 (en) Method and apparatus for indexing rich internet content using contextual information
CN117215687A (en) Method, device and storage medium for displaying other widgets in widget
CN111031117A (en) Multimedia file downloading method and related device
CN108572985B (en) Page display method and device
CN105378710A (en) Identifying search matches and altered search results
CN117271022A (en) Method, device and storage medium for displaying icons in widget
CN117234638A (en) Method, device and storage medium for displaying target display object in widget
WO2016169105A1 (en) Application menu processing method and device
JP5836545B1 (en) Information processing apparatus, information processing method, program, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication