CN115729544A - Desktop component generation method and device, electronic equipment and readable storage medium - Google Patents

Desktop component generation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115729544A
CN115729544A CN202211445849.0A CN202211445849A CN115729544A CN 115729544 A CN115729544 A CN 115729544A CN 202211445849 A CN202211445849 A CN 202211445849A CN 115729544 A CN115729544 A CN 115729544A
Authority
CN
China
Prior art keywords
target
component
content
updating
area
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
CN202211445849.0A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211445849.0A priority Critical patent/CN115729544A/en
Publication of CN115729544A publication Critical patent/CN115729544A/en
Priority to PCT/CN2023/126998 priority patent/WO2024104079A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application discloses a desktop component generation method and device, electronic equipment and a readable storage medium, and belongs to the technical field of electronic equipment. The desktop component generation method comprises the following steps: receiving a first input aiming at a target area on a running interface of a target application under the condition that the running interface is displayed; responding to the first input, generating a target component, and displaying the target component on a desktop, wherein the target component displays the content of the target area; and in the case of updating the content of the target area, updating the display content in the target component based on the updated content of the target area.

Description

Desktop component generation method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a desktop component generation method and device, electronic equipment and a readable storage medium.
Background
The desktop component is used as an application expansion form commonly used for desktops of electronic equipment such as mobile phones and the like, so that user operation is greatly facilitated, and users can quickly check related contents or execute related operations without entering application programs. At present, the contents and functions of desktop components are usually defined and generated by manufacturers and third-party application companies, and the personalized requirements of users cannot be met in many times. Therefore, the desktop components generated based on the existing mode have the problem of unmatching with the requirements of users.
Disclosure of Invention
An object of the embodiments of the present application is to provide a desktop component generation method, an apparatus, an electronic device, and a readable storage medium, which can solve the problem in the related art that a desktop component is not matched with a user requirement.
In a first aspect, an embodiment of the present application provides a desktop component generation method, including:
receiving a first input aiming at a target area on a running interface of a target application under the condition that the running interface is displayed;
responding to the first input, generating a target component, and displaying the target component on a desktop, wherein the target component displays the content of the target area;
and in the case of updating the content of the target area, updating the display content in the target component based on the updated content of the target area.
In a second aspect, an embodiment of the present application provides a desktop component generating apparatus, including:
the device comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving first input aiming at a target area on a running interface of a target application under the condition that the running interface is displayed;
the generating module is used for responding to the first input, generating a target component and displaying the target component on a desktop, wherein the target component displays the content of the target area;
and the first updating module is used for updating the display content in the target component based on the updated content of the target area under the condition that the content of the target area is updated.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the desktop component generation method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the desktop component generation method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the desktop component generation method according to the first aspect.
In a sixth aspect, the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the desktop component generation method according to the first aspect.
In the embodiment of the application, the electronic device receives a first input aiming at a target area on a running interface under the condition that the running interface of a target application is displayed, generates a target component in response to the first input, and can display the target component on a desktop, wherein the target component displays the content of the target area; and in the case of updating the content of the target area, updating the display content in the target component based on the updated content of the target area. . Therefore, the electronic equipment can generate the component capable of being displayed on the desktop based on the content of a certain display area in the target application according to the input operation of the user, the user can flexibly create the desktop component according to the self requirement and preference, the display content in the target component can be updated based on the update content of the corresponding target area, the generated desktop component is enabled to be matched with the user requirement, the user can check the related content in the target application more conveniently, the user can timely know the related content of the target application through the target component on the desktop without entering the target application, and better electronic equipment use experience is brought to the user.
Drawings
FIG. 1 is a flowchart of a desktop component generation method provided by an embodiment of the present application;
FIG. 2a is a schematic view of a scenario of a desktop component generation method according to an embodiment of the present application;
FIG. 2b is a second schematic view of a desktop component generation method according to an embodiment of the present disclosure;
fig. 2c is a third scenario diagram illustrating a desktop component generation method according to an embodiment of the present application;
FIG. 2d is a fourth schematic view of a scenario of a desktop component generation method according to an embodiment of the present application;
fig. 2e is a fifth schematic view of a scenario of a desktop component generation method according to an embodiment of the present application;
FIG. 2f is a sixth schematic view of a scene of a desktop component generation method according to an embodiment of the present application;
FIG. 2g is a seventh view of a scenario of a desktop component generation method according to an embodiment of the present application;
fig. 2h is an eighth schematic view of a scene of a desktop component generation method according to an embodiment of the present application;
FIG. 2i is a ninth view of a scene diagram of a desktop component generation method according to an embodiment of the present application;
FIG. 2j is a tenth view of a scene diagram of a desktop component generation method according to an embodiment of the present application;
FIG. 2k is an eleventh view illustrating a scene of a desktop component generation method according to an embodiment of the present application;
FIG. 2l is a twelve schematic view of a desktop component generation method according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a desktop component generation apparatus according to an embodiment of the present application;
fig. 4 is one of the structural diagrams of an electronic device according to an embodiment of the present application;
fig. 5 is a second structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The desktop component generation method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of a desktop component generation method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step 101, receiving a first input aiming at a target area on an operation interface of a target application under the condition that the operation interface is displayed.
The desktop component generation method provided by the embodiment of the present application may be applied to an electronic device with a display screen, such as a mobile phone, a tablet computer, a computer, an intelligent wearable device, and the like. For better understanding, the scheme provided by the embodiment of the application will be explained by applying the method to the electronic equipment.
It can be understood that, when the electronic device displays the running interface of the target application, the target application is in a foreground running state. The target application may refer to any application installed by the electronic device, and the running interface refers to a page on which the target application is currently displayed on a display screen of the electronic device.
In the embodiment of the application, under the condition that the electronic equipment displays the running interface of the target application, first input of a user for a target area on the running interface is received. The first input may be a slide input, a single click input, a double click input, or a voice input.
For example, as shown in fig. 2a, the electronic device currently displays a running interface of a target application, and a user may draw a straight line (i.e., a first input) from an upper left corner to a lower right corner with respect to a target area 201 on the running interface to select the area; alternatively, the user may draw a box (i.e., the first input) for the periphery of the target area 201 and select the area box. Optionally, the first input to the target area 201 may also be in other possible forms, which is not specifically limited in this embodiment of the application.
And 102, responding to the first input, generating a target assembly, and displaying the target assembly on a desktop, wherein the target assembly displays the content of the target area.
In this step, after receiving a first input for a target area on a running interface of a target application, the electronic device generates a target component in response to the first input. For example, the content of the target area may be intercepted, and a target component is generated based on the intercepted content, and then the content of the target area is displayed by the target component. The target component may refer to a component capable of being displayed on a desktop, as shown in fig. 2b, and the target component may be displayed on the desktop of the electronic device.
And 103, updating the display content in the target component based on the updated content of the target area when the content of the target area is updated.
In the embodiment of the application, the target component is generated based on a target area on a target application running interface, and the target component can display the content in the target area. It can be understood that the target application is capable of being updated in real time, the content in the target area is also updated, and in the case of updating the content in the target area, the update of the display content in the target component is synchronously implemented based on the updated content in the target area, where the updated content in the target component is the updated content in the target area. Therefore, the user can know the updated content of the target area in the target application based on the target component on the display desktop without entering the running interface of the target application, the user operation is effectively simplified, and the user can obtain the updated content of the target area more conveniently.
In the embodiment of the application, the electronic equipment receives a first input aiming at a target area on an operation interface under the condition of displaying the operation interface of a target application, generates a target component in response to the first input, and can display the target component on a desktop, wherein the target component displays the content of the target area; and in the case of updating the content of the target area, updating the display content in the target component based on the updated content of the target area. Therefore, the electronic equipment can generate the content of a certain display area in the target application into the component capable of being displayed on the desktop based on the input operation of the user, and the user can flexibly create the desktop component according to the requirement and preference of the user; the display content in the target assembly can be updated based on the update content of the corresponding target area, so that the user can check the related content in the target application more conveniently, the user can know the related content of the target application in time through the target assembly on the desktop without entering the target application, and better use experience of the electronic equipment is brought to the user.
Optionally, the updating the display content in the target component based on the updated content of the target area includes:
the page where the target area is located is subjected to screen capture according to a preset frequency so as to obtain the updated content of the target area;
updating the display content in the target component based on the updated content of the target area.
In this embodiment of the application, the electronic device may capture a screen of the page where the target area is located based on a preset frequency, for example, the screen of the page where the target area is located may be captured once per second, and the updated content of the target area may be obtained based on the screen capture. For example, the display contents of adjacent screen shots may be identified and compared, so that different contents of a subsequent screen shot relative to a previous screen shot can be identified, and thus, the updated content of the target area can be obtained, and the display contents in the target assembly are updated based on the updated content of the target area. In this way, the updated content of the target area can be acquired based on the screen capture mode to update the display in the target component, so that the accuracy of updating the display content in the target component is ensured.
Optionally, the updating the display content in the target component based on the updated content of the target area includes:
updating the display content in the target assembly according to a preset updating rule based on the updating content of the target area, wherein the preset updating rule comprises at least one of the following items:
updating the electronic equipment under the condition that the electronic equipment is in a bright screen state;
under the condition that the display content of the target component is updated every time, saving the data which is updated last time and deleting the data saved before updating;
and under the condition that the target application is in a background running state, acquiring the update content corresponding to the target area in the target application so as to update the display content in the target component.
In the embodiment of the application, after the desktop displays the target component, if the content of the target area is updated, the electronic device can update the display content in the target component based on a preset update rule.
For example, the display content in the target component may be updated when the electronic device is in a bright screen state, and the display content in the target component is not updated in a screen-off state, that is, the update data of the display content of the target component is not actively acquired in the screen-off state, so as to save memory resources of the electronic device.
Or, the electronic device saves and deletes the data updated last time when the display content of the target component is updated every time, that is, the electronic device only saves the latest data of the display content of the target component, so that the data volume of the target component in the electronic device can be effectively reduced.
Or, further, under the condition that the target application is in the background running state, only the update content corresponding to the target area in the target application is obtained to update the display content in the target component, that is, other update contents in the target application except the target area are not actively obtained, so that the data memory occupied by the target application can be effectively saved.
The electronic device may obtain the update data corresponding to the target component according to the position of the running interface where the target area is located in the target application, that is, the target area is located at the hierarchical position of the target application. For example, if the target area is real-time bus content of a map application, the corresponding position is a home page-real-time bus page. Or, the electronic device may also obtain the update data corresponding to the target area in a targeted manner according to the coordinate value of the target area on the operation interface; or, the updating data corresponding to the target area can be acquired based on the page screenshot updated in real time, so as to ensure the updating of the display content in the target component.
Optionally, the step 101 may include:
receiving a sixth input aiming at the first control under the condition that a running interface of the target application is displayed;
responding to the sixth input, and controlling the running interface to enter a desktop component generation mode;
in the desktop component generation mode, a first input for a target area on the runtime interface is received.
The first control may be a control that is always displayed on the display interface of the electronic device, that is, the first control is displayed no matter whether the display interface currently displays a running interface or a desktop of an application, and for example, the first control is called a "hover ball" control in some scenarios. Or, the first control may be displayed only when the running interface of the application is displayed, that is, when the application exits to the display desktop, the first control is not displayed.
In the embodiment of the application, when a running interface of a target application is displayed, a first control is simultaneously displayed on a display interface of an electronic device, when a sixth input aiming at the first control is received, for example, a long-press up-slide operation, a long-press left-slide operation and the like of the first control are performed, the running interface enters a desktop component generation mode, for example, the running interface is controlled to be highlighted or partially highlighted, or the display mode of the running interface may not be changed, and in the desktop component generation mode, when a first input aiming at a target area on the running interface is received, the electronic device can respond to the first input, and generate a target component, namely a desktop component, which can be displayed on a desktop based on the target area.
For example, as shown in fig. 2c, the electronic device currently displays the running interface of the target application and the first control 202, when receiving a long-time press of the first control 202 by the user, that is, when triggering the desktop component generation function, the running interface is controlled to enter the desktop component generation mode, at this time, when receiving a first input of the user for a certain area on the running interface, for example, the user draws a straight line (that is, a first input) from the upper left corner to the lower right corner of the target area 201 on the running interface, as shown in fig. 2a, the range of the target area 201 is determined based on the first input and the target area 201 is highlighted, and the display brightness of other areas of the running interface is lower than that of the target area 201, so that the user can more intuitively know the range included by the current target area 201.
In the embodiment of the application, the first control is displayed, and then the user can execute the sixth input to the first control to trigger the running interface to enter the desktop component generation mode, so that the electronic equipment can execute a specific response to the first input of the target area on the running interface in the mode to generate the target component which can be displayed on the desktop, and the user can flexibly create the desktop component according to own requirements and preferences.
Optionally, the generating a target component in response to the first input may include:
generating a candidate component and a control area at the target area of the running interface in response to the first input, wherein the size of the candidate component is matched with the size of the target area;
determining the candidate component as a target component if a fifth input is received for a second control within the control region.
In an embodiment of the application, when receiving a first input for a target area on a running interface, an electronic device generates a candidate component and a control area at the target area of the running interface in response to the first input.
Illustratively, as shown in fig. 2d, a candidate component 203 and a control area 204 are generated based on a first input of a user, a size of the candidate component 203 may be determined according to a size of the target area, and a "complete" control and a "cancel" control may be displayed in the control area 204; when a fifth input is received for the second control in the control area 204, e.g., the user clicks the "done" control, the candidate component 203 is determined to be the target component, which can then be determined based on the user input.
It should be noted that, in the generation process of the target component, the user may adjust the size range of the candidate component, so as to adjust the size of the target component. As shown in fig. 2d, in the case of displaying the candidate component 203, the user may drag the boundary line of the candidate component 203, for example, to pull the upper boundary line upward, so as to expand the size range of the candidate component 203, and when the user clicks the "complete" control, the size of the target component is also the size of the expanded candidate component 203. Therefore, the size of the target component can be adjusted flexibly by a user more conveniently.
Additionally, the user may also enter text at a particular location to name the target component. As shown in fig. 2d, in the case that the candidate component 203 is displayed, a text input box 205 is further displayed above the candidate component 203, and a user can input characters in the text input box 205 to name a target component to be generated, so that when the target component is displayed on the desktop, the user can know the related content of the target component based on the component name, and the user can find the target component more conveniently.
Optionally, said generating a target component in response to said first input comprises:
generating a candidate component in the target area of the runtime interface in response to the first input;
in the case that the boundary of the candidate component overlaps with a target element in the target area, adjusting the size of the candidate component so that the adjusted boundary of the candidate component does not overlap with the target element;
generating a target component based on the adjusted candidate component.
In the embodiment of the application, the electronic equipment can generate a candidate component based on a first input of a user for a target area, wherein the size of the candidate component is matched with that of the target area; further, the electronic device identifies a target element in the target area, where the target element may be a display element such as a picture, a text, a virtual key, or a graphic displayed in the target area, determines whether the target element overlaps with a boundary of the generated candidate component, for example, if a boundary line of the candidate component covers the picture in the target area, it determines that the boundary of the candidate component overlaps with the target element in the target area, and in this case, the electronic device may automatically adjust the size of the candidate component based on the position of the target element, so that the adjusted boundary of the candidate component does not overlap with the target element.
For example, as shown in fig. 2e, if the boundary line of the candidate component covers the text in the target area, it is determined that the boundary of the candidate component overlaps with the target element in the target area, the boundary of the target element overlapping with the boundary of the candidate component is obtained, and the boundary of the candidate component is expanded to be outside the boundary of the target element, and the target element is already included in the range of the candidate component. Of course, the boundary of the candidate component may be narrowed to exclude the target element from the candidate component, and the target component may be generated based on the adjusted candidate component. Therefore, the electronic equipment can automatically adjust the boundary of the target assembly based on the position of the target element in the target area without manual adjustment of a user, so that the user operation is effectively simplified, and the generated target assembly can be prevented from comprising discontinuous target elements, so that the content integrity and the attractiveness of the target assembly are ensured.
In the embodiment of the present application, the method may further include the steps of:
receiving second inputs for M first components of the N first components if the target component includes N first components, M being an integer greater than or equal to 2, N being an integer greater than or equal to M;
in response to the second input, displaying a first target component of the M first components in a first area of the desktop;
and in the case of receiving a third input aiming at the first area, switching the first target component displayed in the first area into a second target component, wherein the second target component is a component except the first target component in the M first components.
It will be appreciated that the electronic device is capable of creating multiple target components based on the manner in which the target components are created, and thus typically more than one target component that can be displayed on the desktop. In the embodiment of the application, the user can also perform the operation of merging and displaying for a plurality of target components, so that at least two target components are aggregated to the same display area of the desktop for displaying.
Illustratively, in the case that the target component includes N first components, that is, the target component created in the above manner, the user may trigger the display of the N first components by setting a function by the target component. For example, as shown in fig. 2f, in the case of displaying the target component setting interface, the user may trigger the "custom component list" control 206 above the setting interface, so as to generate a custom region 207 as shown in fig. 2g, in which the "create aggregate component" control 208 is displayed, as shown in fig. 2h, the user may trigger the control to enter an aggregate component creation mode, in which the upper right corner of each first component (i.e., target component) displayed on the display interface may be provided with a selection box, and the user may select and determine M first components by clicking the selection box; as shown in fig. 2i, the user selects three first components 209 in the current display interface, and in response to the selection operation of the user, the 3 first components are aggregated to be displayed in the first area 210 of the desktop. Alternatively, said first area of the desktop may be displaying one first component at a time, e.g. displaying a first target component of the three first components on the desktop. Further, when a third input for the first area is received, for example, when a user performs a right-to-left sliding operation in the first area, the first target component currently displayed in the first area is replaced with the second target component, so as to implement switching of the first component displayed in the first area.
In the embodiment of the application, the electronic equipment can aggregate a plurality of target assemblies into one display area of the desktop based on input operation of a user, and can switch and display the plurality of target assemblies in the display area, so that more target assemblies can be displayed on the desktop under the condition that the target assemblies are more, the display mode of the target assemblies is more flexible, and convenience of the user in operating the target assemblies is improved.
Optionally, after the generating a target component in response to the first input and displaying the target component on a desktop, the method further comprises:
receiving a fourth input for the target component;
and responding to the fourth input, and updating display content in the target assembly, wherein the display content is the content of other areas except the target area on the running interface.
In the embodiment of the present application, the target component is generated based on a target area on a target application running interface, and the target component may be a component that only displays content in the target area. Under the condition that the target assembly is displayed on a desktop, when a fourth input aiming at the target assembly by a user is received, for example, a sliding operation acted on display content in the target assembly is received, the display content in the target assembly is updated in response to the sliding operation, the content of other areas except the target area on the running interface is displayed in the target assembly, and the content of different areas on the running interface can be sequentially displayed along with the sliding operation of the user on the display content in the target assembly. For example, as shown in fig. 2j, if the user performs a slide-up operation, the contents in the area below the target area in the running interface are sequentially displayed following the slide operation of the user. And if the user executes the downward sliding operation, sequentially displaying the contents in the region above the target region in the running interface along with the sliding operation of the user.
In the embodiment of the application, when the desktop displays the target component, the display content in the target component can be updated based on the input operation of the user on the target component, so that the content of other areas except the target area on the running interface can be displayed in the target component, the user can check the display content on the running interface of the target application through the target component on the desktop without entering the running interface of the target application, the user can acquire the related content in the target application more conveniently and quickly, and the user operation is effectively saved.
Illustratively, as shown in fig. 2k, the display content in the target component may include text information, and may further include at least one of a title (e.g., "real-time bus", "card calendar" in fig. 2 k), a background picture, and a virtual key (e.g., "more" in fig. 2 k). Alternatively, the form of the target component may be determined based on the presentation form of the target area in the target application, for example, if the display content in the target area is presented in the form of a list, the display content in the target component may also be presented in the form of a list, for example, three different list presentation forms of the target component are presented in fig. 2 l.
According to the desktop component generation method provided by the embodiment of the application, the execution main body can be a desktop component generation device. In the embodiment of the present application, a desktop component generation apparatus executes a desktop component generation method as an example, and the desktop component generation apparatus provided in the embodiment of the present application is described.
Referring to fig. 3, fig. 3 is a structural diagram of a desktop component generating apparatus according to an embodiment of the present application, and as shown in fig. 3, the desktop component generating apparatus 300 includes:
a first receiving module 301, configured to receive a first input for a target area on an execution interface of a target application in a case that the execution interface is displayed;
a generating module 302, configured to generate a target component in response to the first input, and display the target component on a desktop, where the target component displays the content of the target area;
a first updating module 303, configured to update the display content in the target component based on the updated content of the target area when the content of the target area is updated.
Optionally, the first updating module 303 is further configured to:
updating the display content in the target assembly according to a preset updating rule based on the updating content of the target area, wherein the preset updating rule comprises at least one of the following items:
updating when the device is in a bright screen state;
under the condition that the display content of the target component is updated every time, saving the data which is updated last time and deleting the data saved before updating;
and under the condition that the target application is in a background running state, acquiring the update content corresponding to the target area in the target application so as to update the display content in the target component.
Optionally, the first updating module 303 is further configured to:
the page where the target area is located is subjected to screen capture according to a preset frequency so as to obtain the updating content of the target area;
updating the display content in the target component based on the updated content of the target area.
Optionally, the generating module 302 is further configured to:
generating a candidate component in the target area of the runtime interface in response to the first input;
in the case that the boundary of the candidate component overlaps with a target element in the target area, adjusting the size of the candidate component so that the adjusted boundary of the candidate component does not overlap with the target element;
generating a target component based on the adjusted candidate component.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive second inputs for M first components of the N first components if the target component includes N first components, where M is an integer greater than or equal to 2, and N is an integer greater than or equal to M;
a display module for displaying a first target component of the M first components in a first area of the desktop in response to the second input;
a switching module, configured to switch the first target component displayed in the first area to a second target component when a third input for the first area is received, where the second target component is a component of the M first components except the first target component.
Optionally, the apparatus further comprises:
a third receiving module for receiving a fourth input for the target component;
and the second updating module is used for responding to the fourth input and updating the display content in the target assembly, wherein the display content is the content of other areas except the target area on the operation interface.
The desktop component generation apparatus 300 provided in the embodiment of the present application can receive a first input for a target area on a running interface of a target application under the condition that the running interface is displayed, generate a target component in response to the first input, and display the target component on a desktop, where the target component displays content of the target area. Therefore, the device can generate the components capable of being displayed on the desktop based on the content of a certain display area in the target application according to the input operation of the user, and then the user can flexibly create the desktop components according to the self requirement and preference, so that the generated desktop components are more matched with the requirement of the user, the user can check the related content in the target application more conveniently, the user can timely know the related content of the target application through the target component on the desktop without entering the target application, and better use experience is brought to the user.
The desktop component generation apparatus 300 in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (NAS), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The desktop component generation apparatus 300 in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The desktop component generation apparatus 300 provided in this embodiment of the application can implement each process implemented in the method embodiments of fig. 1 to fig. 2l, and for avoiding repetition, details are not described here again.
Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401 and a memory 402, where the memory 402 stores a program or an instruction that can be executed on the processor 401, and when the program or the instruction is executed by the processor 401, the steps of the above-described desktop component generation method embodiment are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 507 is configured to receive a first input for a target area on an operation interface of a target application in a case that the operation interface is displayed;
a processor 510, configured to generate a target component in response to the first input, and display the target component on a desktop, where the target component displays the content of the target area; and for the purpose of,
and in the case of updating the content of the target area, updating the display content in the target component based on the updated content of the target area.
Optionally, the processor 510 is further configured to:
updating the display content in the target assembly according to a preset updating rule based on the updating content of the target area, wherein the preset updating rule comprises at least one of the following items:
updating the electronic equipment under the condition that the electronic equipment is in a bright screen state;
under the condition that the display content of the target component is updated every time, saving the data which is updated last time and deleting the data saved before updating;
and under the condition that the target application is in a background running state, acquiring the update content corresponding to the target area in the target application so as to update the display content in the target component.
Optionally, the processor 510 is further configured to:
the page where the target area is located is subjected to screen capture according to a preset frequency so as to obtain the updating content of the target area;
updating the display content in the target component based on the updated content of the target area.
Optionally, the processor 510 is further configured to:
generating a candidate component in the target area of the runtime interface in response to the first input;
in the case that the boundary of the candidate component overlaps with a target element in the target area, adjusting the size of the candidate component so that the adjusted boundary of the candidate component does not overlap with the target element;
generating a target component based on the adjusted candidate component.
Optionally, the user input unit 507 is further configured to:
receiving second inputs for M first components of the N first components if the target component includes N first components, M being an integer greater than or equal to 2, N being an integer greater than or equal to M;
in response to the second input, displaying a first target component of the M first components in a first area of the desktop;
and in the case of receiving a third input aiming at the first area, switching the first target component displayed in the first area into a second target component, wherein the second target component is a component except the first target component in the M first components.
Optionally, the user input unit 507 is further configured to: receiving a fourth input for the target component;
a processor 510, further configured to: and responding to the fourth input, and updating display content in the target assembly, wherein the display content is the content of other areas except the target area on the running interface.
In the embodiment of the application, the electronic device 500 can generate a component capable of being displayed on the desktop based on the content of a certain display area in the target application according to the input operation of the user, and then the user can flexibly create the desktop component according to the self requirement and preference, and the display content in the target component can be updated based on the update content of the corresponding target area, so that the generated desktop component is more matched with the user requirement, the user can more conveniently check the related content in the target application, the user can timely know the related content of the target application through the target component on the desktop without entering the target application, and better electronic device use experience is brought to the user.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 509 may comprise volatile memory or non-volatile memory, or the memory x09 may comprise both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 509 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor, which mainly handles operations related to the operating system, user interface, application programs, etc., and a modem processor, which mainly handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned desktop component generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above desktop component generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing desktop component generation method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A desktop component generation method, comprising:
receiving a first input aiming at a target area on a running interface of a target application under the condition that the running interface is displayed;
responding to the first input, generating a target component, and displaying the target component on a desktop, wherein the target component displays the content of the target area;
and in the case of updating the content of the target area, updating the display content in the target component based on the updated content of the target area.
2. The method of claim 1, wherein the method is applied to an electronic device, and the updating the display content in the target component based on the updated content of the target area comprises:
updating the display content in the target assembly according to a preset updating rule based on the updating content of the target area, wherein the preset updating rule comprises at least one of the following items:
updating the electronic equipment under the condition that the electronic equipment is in a bright screen state;
under the condition that the display content of the target component is updated every time, saving the data which is updated last time and deleting the data saved before updating;
and under the condition that the target application is in a background running state, acquiring the update content corresponding to the target area in the target application so as to update the display content in the target component.
3. The method of claim 1, wherein the updating the display content within the target component based on the updated content of the target area comprises:
the page where the target area is located is subjected to screen capture according to a preset frequency so as to obtain the updated content of the target area;
updating the display content in the target component based on the updated content of the target area.
4. The method of claim 1, wherein generating a target component in response to the first input comprises:
generating a candidate component in the target area of the runtime interface in response to the first input;
in the case that the boundary of the candidate component overlaps with a target element in the target area, adjusting the size of the candidate component so that the adjusted boundary of the candidate component does not overlap with the target element;
generating a target component based on the adjusted candidate component.
5. The method of claim 1, wherein the target component is generated in response to the first input and after desktop display of the target component, the method further comprises:
receiving second inputs for M first components of the N first components if the target component includes N first components, M being an integer greater than or equal to 2, N being an integer greater than or equal to M;
in response to the second input, displaying a first target component of the M first components in a first area of the desktop;
and in the case of receiving a third input aiming at the first area, switching the first target component displayed in the first area into a second target component, wherein the second target component is a component except the first target component in the M first components.
6. The method of claim 1, wherein the target component is generated in response to the first input and after desktop display of the target component, the method further comprises:
receiving a fourth input for the target component;
and responding to the fourth input, and updating display content in the target assembly, wherein the display content is the content of other areas except the target area on the running interface.
7. A desktop component generation apparatus, comprising:
the device comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving first input aiming at a target area on a running interface of a target application under the condition that the running interface is displayed;
the generating module is used for responding to the first input, generating a target component and displaying the target component on a desktop, wherein the target component displays the content of the target area;
and the first updating module is used for updating the display content in the target component based on the updated content of the target area under the condition that the content of the target area is updated.
8. The apparatus of claim 7, wherein the first update module is further configured to:
updating the display content in the target assembly according to a preset updating rule based on the updating content of the target area, wherein the preset updating rule comprises at least one of the following items:
updating when the device is in a bright screen state;
under the condition that the display content of the target component is updated every time, saving the data which is updated last time and deleting the data saved before updating;
and under the condition that the target application is in a background running state, acquiring the update content corresponding to the target area in the target application so as to update the display content in the target component.
9. The apparatus of claim 7, wherein the first update module is further configured to:
the page where the target area is located is subjected to screen capture according to a preset frequency so as to obtain the updated content of the target area;
updating the display content in the target component based on the updated content of the target area.
10. The apparatus of claim 7, wherein the generating module is further configured to:
generating a candidate component in the target area of the runtime interface in response to the first input;
in the case that the boundary of the candidate component overlaps with a target element in the target area, adjusting the size of the candidate component so that the adjusted boundary of the candidate component does not overlap with the target element;
generating a target component based on the adjusted candidate component.
11. The apparatus of claim 7, further comprising:
a second receiving module, configured to receive second inputs for M first components of the N first components if the target component includes N first components, where M is an integer greater than or equal to 2, and N is an integer greater than or equal to M;
a display module for displaying a first target component of the M first components in a first area of the desktop in response to the second input;
a switching module, configured to switch the first target component displayed in the first area to a second target component when a third input for the first area is received, where the second target component is a component of the M first components except for the first target component.
12. The apparatus of claim 7, further comprising:
a third receiving module for receiving a fourth input for the target component;
and the second updating module is used for responding to the fourth input and updating the display content in the target assembly, wherein the display content is the content of other areas except the target area on the operation interface.
13. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the desktop component generation method of any of claims 1-6.
14. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the desktop component generation method according to any one of claims 1-6.
CN202211445849.0A 2022-11-18 2022-11-18 Desktop component generation method and device, electronic equipment and readable storage medium Pending CN115729544A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211445849.0A CN115729544A (en) 2022-11-18 2022-11-18 Desktop component generation method and device, electronic equipment and readable storage medium
PCT/CN2023/126998 WO2024104079A1 (en) 2022-11-18 2023-10-27 Desktop component generation method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211445849.0A CN115729544A (en) 2022-11-18 2022-11-18 Desktop component generation method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115729544A true CN115729544A (en) 2023-03-03

Family

ID=85296540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211445849.0A Pending CN115729544A (en) 2022-11-18 2022-11-18 Desktop component generation method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN115729544A (en)
WO (1) WO2024104079A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024104079A1 (en) * 2022-11-18 2024-05-23 维沃移动通信有限公司 Desktop component generation method and apparatus, electronic device, and readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794800B (en) * 2018-11-23 2022-08-26 华为技术有限公司 Voice control method and electronic equipment
CN112099694B (en) * 2020-09-24 2022-06-03 维沃移动通信有限公司 Desktop control processing method and device
CN115033140A (en) * 2021-03-05 2022-09-09 华为技术有限公司 Display method of card assembly, graphical user interface and related device
CN114115643A (en) * 2021-11-22 2022-03-01 北京光启元数字科技有限公司 Component display method and device, electronic equipment and readable medium
CN114356168A (en) * 2022-01-04 2022-04-15 维沃移动通信有限公司 Message reminding method and device
CN114489913A (en) * 2022-02-16 2022-05-13 维沃移动通信有限公司 Interaction method, interaction device and electronic equipment
CN114779977A (en) * 2022-04-26 2022-07-22 维沃移动通信有限公司 Interface display method and device, electronic equipment and storage medium
CN115729544A (en) * 2022-11-18 2023-03-03 维沃移动通信有限公司 Desktop component generation method and device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024104079A1 (en) * 2022-11-18 2024-05-23 维沃移动通信有限公司 Desktop component generation method and apparatus, electronic device, and readable storage medium

Also Published As

Publication number Publication date
WO2024104079A1 (en) 2024-05-23

Similar Documents

Publication Publication Date Title
US11551392B2 (en) Graphic drawing method and apparatus, device, and storage medium
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN114518820A (en) Icon sorting method and device and electronic equipment
CN112905134A (en) Method and device for refreshing display and electronic equipment
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN112148167A (en) Control setting method and device and electronic equipment
WO2024104079A1 (en) Desktop component generation method and apparatus, electronic device, and readable storage medium
CN115357158A (en) Message processing method and device, electronic equipment and storage medium
CN114518822A (en) Application icon management method and device and electronic equipment
WO2024099102A1 (en) Control display method and apparatus, electronic device, and readable storage medium
CN114302009A (en) Video processing method, video processing device, electronic equipment and medium
CN112698762A (en) Icon display method and device and electronic equipment
CN116107531A (en) Interface display method and device
CN114416269A (en) Interface display method and display device
CN115866314A (en) Video playing method and device
CN115617225A (en) Application interface display method and device, electronic equipment and storage medium
CN115291778A (en) Display control method and device, electronic equipment and readable storage medium
CN115576463A (en) Background application management method and device, electronic equipment and medium
CN115718581A (en) Information display method and device, electronic equipment and storage medium
CN114879872A (en) Display method, display device, electronic equipment and storage medium
CN114895815A (en) Data processing method and electronic equipment
CN114827737A (en) Image generation method and device and electronic equipment
CN115202524A (en) Display method and device
CN114518859A (en) Display control method, display control device, electronic equipment and storage medium
CN114115639A (en) Interface control method and device, electronic equipment and storage medium

Legal Events

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