CN115390731A - Position adjustment method and device of display element, electronic equipment and storage medium - Google Patents
Position adjustment method and device of display element, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115390731A CN115390731A CN202210987454.7A CN202210987454A CN115390731A CN 115390731 A CN115390731 A CN 115390731A CN 202210987454 A CN202210987454 A CN 202210987454A CN 115390731 A CN115390731 A CN 115390731A
- Authority
- CN
- China
- Prior art keywords
- display element
- target display
- instruction
- response
- target
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
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)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a position adjusting method and device of a display element, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a position adjusting instruction of a user on a target display element, wherein the target display element is currently located in a first process; generating a target display element within a second process based on the position adjustment instruction; establishing a second data channel between the element service and a second process in response to completion of the adjustment operation; sending data information of the element service, which corresponds to the target display element, to a second process through a second data channel; and displaying the data information in the view of the target display element in the second process. By the aid of the mode, element position adjustment isolation among multiple processes can be achieved.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for adjusting a position of a display element, an electronic device, and a storage medium.
Background
Currently, the view dragging technology in the market is realized by a Drag And Drop framework (Drag And Drop framework) of google, and the framework provides a Drag event class, a Drag listener, a helper class And a method. In the process of adjusting the position of the display element by the drag-and-drop frame, the source process of the display element transfers the data information of the display element to the target process, so that the display element is moved to the target process. The method not only transfers data information of display elements, but also realizes position adjustment of elements among processes, and comprises other necessary interaction, when the related processes are too many (for example, the display elements are dragged from the process A to the process B and then dragged to the process C, 8230; and the process A can also directly support dragging the process C, the process D and the like), the design of the position adjustment interaction is more complicated, however, the current drag-and-drop framework can not realize position adjustment isolation of the elements among the processes, and thus can not realize position adjustment of elements among the processes.
Disclosure of Invention
A first aspect of the present application provides a method for adjusting a position of a display element, including: receiving a position adjusting instruction of a user on a target display element, wherein the target display element is currently located in a first process; generating a target display element within a second process based on the position adjustment instruction; establishing a second data channel between the element service and a second process in response to completion of the adjustment operation; sending data information of the element service corresponding to the target display element to a second process through a second data channel; and displaying the data information in the view of the target display element in the second process.
A second aspect of the present application provides an element position adjustment apparatus, including: the instruction receiving module is used for receiving a position adjusting instruction of a user on a target display element, wherein the target display element is currently positioned in a first process; an element generation module to generate a target display element within a second process based on the position adjustment instruction; a channel establishing module, configured to establish a second data channel between the element service and a second process in response to completion of the adjustment operation; the information sending module is used for sending the data information of the element service, which corresponds to the target display element, to a second process through a second data channel; and the data display module is used for displaying the data information in the view of the target display element in the second process.
A third aspect of the present application provides an electronic device comprising a memory and a processor coupled to each other, the memory being configured to store program data, and the processor being configured to execute the program data to implement the aforementioned method.
A fourth aspect of the present application provides a computer-readable storage medium having stored therein program data, which when executed by a processor, is configured to implement the aforementioned method.
The beneficial effect of this application is: different from the situation of the prior art, the method includes the steps that a position adjusting instruction of a user for a target display element is received, wherein the target display element is located in a first process at present, then the target display element is generated in a second process based on the position adjusting instruction, then a second data channel is established between an element service and the second process in response to the completion of an adjusting operation, then data information of the element service corresponding to the target display element is sent to the second process through the second data channel, and finally the data information is displayed in a view of the target display element in the second process.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings required in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive labor. Wherein:
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a method for adjusting a position of a display element according to the present application;
FIG. 2 is a schematic diagram of a scene of an embodiment of a method for adjusting positions of display elements according to the present application;
FIG. 3 is a schematic view of another embodiment of a method for adjusting positions of display elements according to the present application;
FIG. 4 is a schematic diagram of a desktop process and a negative one-screen process;
FIG. 5 is a schematic flow chart of one embodiment of step S12 in FIG. 1;
FIG. 6 is a diagram illustrating an embodiment of a predetermined boundary range;
FIG. 7 is a schematic diagram of another embodiment of a predetermined boundary range;
FIG. 8 is a schematic flow chart diagram of another embodiment of step S102 in FIG. 5;
FIG. 9 is a schematic flow chart diagram of one embodiment of a first predetermined condition;
FIG. 10 is a flowchart illustrating a method for adjusting the position of a display element according to another embodiment of the present application;
FIG. 11 is a schematic flow chart diagram of one embodiment of a second predetermined condition;
FIG. 12 is a flowchart illustrating a method for adjusting a position of a display element according to another embodiment of the present disclosure;
FIG. 13 is a flowchart illustrating an embodiment of a method for adjusting the position of a display element according to the present application;
FIG. 14 is a schematic flow chart diagram illustrating an embodiment of a method for adjusting the position of a display element according to the present application;
FIG. 15 is a block diagram schematically illustrating the structure of an embodiment of an apparatus for adjusting the position of an element of the present application;
FIG. 16 is a block diagram illustrating the structure of an embodiment of the electronic device of the present application;
FIG. 17 is a block diagram illustrating the structure of one embodiment of the computer-readable storage medium of the present application.
Detailed Description
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The terms "first" and "second" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specified otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1 to 4, fig. 1 is a schematic flowchart illustrating an embodiment of a method for adjusting a position of a display element of the present application, fig. 2 is a schematic view illustrating a scene illustrating an embodiment of a method for adjusting a position of a display element of the present application, fig. 3 is a schematic view illustrating another scene illustrating an embodiment of a method for adjusting a position of a display element of the present application, and fig. 4 is a schematic view illustrating a desktop process and a negative one-screen process.
The execution main body of the application is electronic equipment (such as a mobile phone, a computer and the like), the electronic equipment is provided with a display screen, an operating system (such as an android operating system, a Hongmon operating system, an IOS operating system, a Windows operating system and the like) is installed, at least a first process and a second process are created, display areas corresponding to the first process and the second process are displayed by the display screen, and each process corresponds to at least one display area. In an example, as shown in fig. 2, the first process corresponds to the first display area 11, the second process corresponds to the second display area 21, and the first display area 11 and the second display area 21 may be displayed on different display interfaces. As shown in fig. 3, the first display area 11 and the second display area 21 may be displayed on the same display interface. When displayed on the same display interface, the first display area 11 and the second display area 21 may partially overlap or may not overlap with each other.
The display screen may be a touch screen, which may also be referred to as a touch screen, a touch panel, etc., and is an inductive display device, and when a display element on the screen is touched, the on-screen haptic feedback system may drive various connection devices according to a preprogrammed program. Touch screens can be divided into five basic categories from the technical principle: a vector pressure sensing technology touch screen, a resistance technology touch screen, a capacitance technology touch screen, an infrared technology touch screen, and a surface acoustic wave technology touch screen. When a user touches the screen with a finger or a touch pen, the touch point coordinate can be positioned, and further the display element at the positioned position can be controlled to enter an editing state, so that the position of the display element is adjusted, the display element is deleted, the size of the display element is modified, the display element is renamed, and the like.
The method may comprise the steps of:
step S101: and receiving a position adjusting instruction of a user on a target display element, wherein the target display element is currently positioned in the first process.
The display screen of the electronic equipment is used for displaying at least one display element, and the user determines one or more target display elements from the at least one display element based on the position adjustment operation, so that the target display elements are in an editing state. And after the target display element enters the editing state, indicating that the position of the target display element can be adjusted.
The target display element can be any object capable of being subjected to position adjustment and displayed in the first process. Optionally, the target display element may include at least one of: icons, folders, cards, plug-ins. The icon can be an application icon, the folder can be used for containing icons, the card can be used for displaying image information, and the plug-in can be a system plug-in or a third-party plug-in. The system plug-in can be a plug-in corresponding to the self-contained application of equipment such as an album plug-in, a weather plug-in, a calendar plug-in, an audio plug-in, a recorder plug-in and the like. The third-party plug-in can be a plug-in corresponding to third-party application such as a microblog plug-in and a panning plug-in.
The first process is different from the second process, the first process may be any process, and the second process may be any process other than the first process. Alternatively, the first process may be one of a desktop process, a negative one-screen process, a notification bar process, a third party process (including a video process, an audio process, a gaming process, a chat process, etc.), and the second process may be any process other than the first process.
As shown in fig. 4, the negative screen and the desktop together can be used as a fusion desktop, which facilitates displaying more display elements. The desktop process may include at least one page (e.g., a first page of the desktop, a second page of the desktop, \8230 \ 8230;, an nth page of the desktop, where N is a natural number), where cards (with sizes of 4 × 4, 2 × 2, etc.), plug-ins, icons, etc. may be displayed in the desktop process, and a negative one-screen process is provided on the left side of the desktop process, and when the user slides the desktop to the right, a display area of the negative one-screen process is displayed, where cards with different sizes are displayed in the display area of the negative one-screen process, and other types of display elements may also be displayed, which is only an example here.
Step S102: based on the position adjustment instruction, a target display element is generated within the second process.
It can be understood that, when the position of the display element is adjusted across processes, the target display element in the first process cannot be directly moved to the second process, but a new target display element is generated in the second process. For example, the system (based on the drag frame) may obtain view information of the target display element within the first process and send the view information to the second process to enable the second process to generate the target display element within the second process based on the view information, thereby visually giving the user the perception that the target display element within the first process is moved directly into the second process, but instead another view of the target display element is generated within the second process, which view belongs to the second process.
Step S103: in response to the adjustment operation being completed, a second data channel is established between the element service and the second process.
After generating the target display element in the second process, the user may continue to adjust the position of the target display element in the second process until the adjustment operation is completed.
In some embodiments, the adjustment operation on the target display element is a drag operation, the corresponding drag trajectory is a movement trajectory of the target display element, and the drag trajectory includes a drag start point and a drag end point. The drag start point is a position where the target display element is located in the first process, and the drag end point is a position in the second process, for example, a position where the user presses the target display element to move continuously and releases the target display element.
Specifically, the electronic device may monitor a dragging track input by a user, read a coordinate of a dragging endpoint when the user releases the target display element, compare the coordinate of the dragging endpoint with a coordinate range corresponding to a second display area where the second process is located, and determine that the dragging endpoint is located in the second process if the coordinate of the dragging endpoint is located in the coordinate range corresponding to the second display area, so as to establish a second data channel between the element service and the second process, and transmit data information of the target display element to the second process.
Step S104: and sending the data information of the element service corresponding to the target display element to the second process through the second data channel.
The element service may interact with multiple processes, and each display element within a process obtains corresponding data information through the element service. Each display element corresponds to a unique identifier. After the target display element is successfully moved to the second process, the second process may establish a second data channel of the target display element with the element service based on the identifier corresponding to the target display element, so as to obtain the data information of the target display element through the second data channel without interacting with the first process.
The data information of the target display element may include, but is not limited to: text information, picture information, video information, link information, and the like.
Step S105: and displaying the data information in the view of the target display element in the second process.
Since the view of the target display element is generated in the second process, after the data information is acquired, the data information may be displayed in the view of the target display element to refresh the target display element.
It should be noted that, the target display element in the second process may be dragged to the first process in the same manner, which is not described herein again.
In a specific embodiment, the target display element may be a microblog plug-in for displaying a microblog hot search (for example, the first 10 hot searches), the element service may interact with a microblog, a first process, and a second process, acquire data information (including source data) of the microblog plug-in from the microblog, send the data information of the microblog plug-in to the first process for display through a first data channel established with the first process before the position of the target display element is adjusted, and send the data information of the microblog plug-in to the second process for display through a second data channel established with the second process after the target display element is successfully moved to the second process. The element service can acquire data information of the target display element from a related process or a server in real time or according to a preset time interval, and send the data information to the process where the target display element is located, so as to refresh the content displayed by the target display element.
According to the scheme, a position adjusting instruction of a user for a target display element is received, wherein the target display element is located in a first process at present, the target display element is generated in a second process based on the position adjusting instruction, a second data channel is established between an element service and the second process in response to the completion of the adjusting operation, data information of the element service corresponding to the target display element is sent to the second process through the second data channel, and the data information is displayed in a view of the target display element in the second process.
Referring to fig. 5 to 7, fig. 5 is a schematic flowchart illustrating an embodiment of step S12 in fig. 1, fig. 6 is a schematic diagram illustrating an embodiment of a predetermined boundary range, and fig. 7 is a schematic diagram illustrating another embodiment of the predetermined boundary range.
In this embodiment, generating the target display element within the second process based on the position adjustment instruction may include steps S1021 to S1023, where the position adjustment instruction may include a first operation instruction and a second operation instruction.
Step S1021: and responding to a first operation instruction of a user, and selecting a target display element in a first display area corresponding to the first process.
When the system monitors a first operation of a user on a display element in a first display area, a first operation instruction corresponding to the first operation is obtained, and a target display element in the first display area corresponding to a first process is selected in response to the first operation instruction of the user. When the target display element is selected, a prompt may also be made in response to the selection to prompt the user that the target display element has been selected. The manner of presentation is not limited to vibration, enlarged display of the target display element, or the like.
In some embodiments, the first operation may be a pressing operation based on a finger of the user (e.g., a long press), or the first operation may also be a pressing operation for an input device that may also be based on a stylus, mouse, or the like. In one example, the duration of the press is greater than 2 seconds, i.e., a long press operation is considered. In other embodiments, the first operation may also be based on other operations of the user's finger or the input device, such as a moving operation, in which the user's finger moves around the graphic element and forms a closed track (e.g., a circle or an approximate circle), and the graphic element is located in the closed track, and then it is determined that the graphic element is selected as the first graphic element.
Step S1022: and responding to a second operation instruction of the user, and controlling the target display element to move in the first display area.
When the electronic equipment monitors a second operation of the user on the display element in the first display area, a second operation instruction corresponding to the first operation is obtained, and the target display element is controlled to move in the first display area in response to the second operation instruction of the user.
In an example, the second operation may be a movement operation, and the target display element may move within the first display area synchronously following the movement operation of the user.
Wherein the electronic device hears a drag event for the target display element. It can be appreciated that when the user presses and moves the target display element for a long time, activity can listen to the onDrag event of View corresponding to the target display element. In addition, when the user lets go of the target display element, activity may listen to endDrag events of the View View corresponding to the target display element.
Step S1023: and generating the target display element in the second process in response to the target display element moving to be within the preset boundary range of the first display area.
As shown in fig. 6 and 7, in some embodiments, generating the target display element within the second process may include sending view information of the target display element to the second process in response to the target display element moving within the preset boundary range 13 of the first display area, and then controlling the second process to generate the target display element within the second process based on the view information. Fig. 6 shows that the first display area corresponding to the first process is the entire display interface, and fig. 7 shows that the first display area corresponding to the first process and the second display area corresponding to the second process are located in the same display interface.
The distance between any pixel in the preset boundary range 13 and the boundary of the first display area is smaller than a preset distance d, for example, 50 to 70dp (pixels). In the present embodiment, the preset distance d may be 60dp.
And the target display element moves to the preset boundary range of the first display area, the position adjustment of the cross-process element is triggered, and further a second process to which the target display element is to move can be determined according to the moving direction of the target display element.
In some embodiments, the target display element may also be generated within the second process in response to the target display element moving within the preset boundary range of the first display area and staying for a preset time period. The preset time period can be set or modified according to actual conditions, and in one example, the preset time period is 60ms.
Referring to fig. 8, fig. 8 is a schematic flowchart illustrating another embodiment of step S102 in fig. 5.
In some embodiments, step S102 may further include: in response to the preset condition being met, a target display element is generated within the second process. Before generating the target display element in the second process, judging whether the preset condition is met or not, and carrying out cross-process dragging under the condition that the preset condition is met. Specifically, step S1023 may include:
step S10231: and responding to the movement of the target display element to the preset boundary range of the first display area, and judging whether the preset condition is met.
In response to the preset condition being met (i.e. if yes), step S10232 is executed, otherwise, it is determined that the target display element cannot move to the second process, and then the monitoring of the position adjustment instruction for the target display element is continued.
Step S10232: a target display element is generated within the second process.
Wherein the preset condition may include, but is not limited to, at least one of the following:
the current operation mode is a single-hand mode;
use of the second process is enabled;
a second display area corresponding to the second process is loaded;
the display state of the second process is not a split screen state and/or a horizontal screen state;
the second process supports cross-process element position adjustment;
judging that the target display element supports display in the second process;
the second process is not in a locked state.
As an example, two preset conditions are listed below, and will be separately described.
Referring to fig. 9, fig. 9 is a flowchart illustrating an embodiment of a first preset condition.
In some embodiments, the preset condition may be a first preset condition, and specifically includes the following steps S201 to S204:
step S201: and judging whether the current operation mode is a single-hand mode.
In this embodiment, the first process may be a desktop process, and the second process may be a negative one-screen process.
In response to the current operation mode being the one-handed mode (i.e., if yes), executing step S202; if not, determining that the target display element cannot move to the second process, and then continuing monitoring the position adjusting instruction of the target display element.
The single-hand mode indicates that the user is currently operating the electronic equipment by one hand, and the position adjustment intention of the user on the display element is higher in the scene. Specifically, it may be determined whether the operation mode is a single-point touch mode, and if the operation mode is not the single-point touch mode, the current operation mode is determined to be the single-hand mode. The electronic equipment can acquire and detect the touch points of the user on the display screen in real time.
Step S202: it is determined whether use of the second process is enabled.
In response to the use of the second process being enabled (i.e., if yes), performing step S203; if not, determining that the target display element cannot move to the second process, and then continuing monitoring the position adjusting instruction of the target display element.
The operating system of the electronic device can judge whether the use of the second process is enabled (or started), if the use of the second process is enabled, the user agrees to use the second process, so that the authority verification can be realized, and when the verification is passed, the data related storage and record can be carried out on the second process, and the target display element can be moved to a negative screen. In an implementation scenario, the second process is a negative screen, and the electronic device provides the user with the permission, so that the user can select whether to open the negative screen according to the user's needs, if the user opens the negative screen, the use of the negative screen is enabled, and if the user does not open the negative screen, the use of the negative screen is not enabled.
In some embodiments, it may be further determined whether the user uses the second process, and if the user uses the second process, it is implicitly stated that the use of the second process is enabled. The user can use the second process by judging whether the second process is in the running state or not, and if the second process is in the running state, the user uses the second process. The running states comprise a background running state and a foreground running state.
Step S203: and judging whether a second display area corresponding to the second process is loaded or not.
In response to whether the second display area corresponding to the second process is loaded (i.e., if yes), executing step S204; if not, prompting the user that the second process is not loaded, trying again later, triggering to load the second process, and then continuing monitoring the position adjusting instruction of the target display element.
And loading the second display area comprises acquiring display data corresponding to the second display area and rendering the display data. When the second display area corresponding to the second process is in the loaded state, it indicates that the system may obtain data corresponding to the second display area at this time, for example, the number of display elements in the second display area, and is used to determine whether the target display element can be generated in the second process based on the number of display elements subsequently.
Step S204: a target display element is generated within the second process.
Specifically, the electronic device may send view information of the target display element to the second process, and then control the second process to generate the target display element within the second process based on the view information.
Referring to fig. 10, fig. 10 is a schematic flow chart illustrating another embodiment of a method for adjusting a position of a display element according to the present application. In this embodiment, the first process may be a desktop process, and the second process may be a negative one-screen process.
The method may comprise the steps of:
and starting.
Step S301: determining that the target display element is dragged within the first process.
At this time, the electronic device may receive a position adjustment instruction of the target display element by the user, and then determine that the target display element is dragged in the first process based on the position adjustment instruction.
Step S302: and triggering to drag to a second process.
For example, when the target display element moves to a preset boundary range of the first display area, dragging the target display element to the second process is triggered, that is, the target display element is triggered to be generated in the second process.
Step S303: whether the current operating mode is a one-handed mode.
If yes, go to step S305; if not, go to step S304.
Step S304: and cannot be dragged to the second process.
Step S305: whether use of the second process is enabled.
If yes, go to step S307; if not, go to step S306.
Step S306: and cannot be dragged to the second process.
Step S307: whether a second display area corresponding to the second process is loaded.
If yes, go to step S309; if not, go to step S308.
Step S308: and prompting the user that the second process is not loaded, asking for retrying later, and triggering the second process to be loaded.
Optionally, the user may also be prompted for the reason why the user cannot move to the second process. For example, the prompt may be performed through a prompt box, voice broadcast, and the like, and the following implementation manner of the user prompt is similar to that here, and is not described in detail later.
For the above steps S303 to S308, reference may be made to the relevant description in the above embodiments, and details are not described here again.
Step S309: a target display element is generated within a second process.
In particular, the second process may generate the target display element within the second process based on the view information of the target display element.
Different from the foregoing embodiment, in this embodiment, the total number of elements of each type of element in the second process and the total number of elements in the second process may also be limited, and if the target display element cannot meet any one of the above requirements for the number of elements after moving to the second process, the second process cannot establish the second data channel related to the target display element with the element service, and then step S320 is executed.
Step S310: and whether the total number of the elements of the type of the target display element in the second process is greater than a first preset threshold value or not.
If yes, go to step S311; if not, go to step S313.
Step S311: and prompting the user that the total number of the elements of the type of the target display element in the second process is greater than a first preset threshold value.
Step S312: drag the target display element back to the first process.
Step S313: whether the total number of elements in the second process is greater than a second preset threshold.
If yes, go to step S314; if not, go to step S315.
Optionally, the first preset threshold and the second preset threshold may be set or modified according to actual situations. In one example, the first preset threshold is 5 and the second preset threshold is 120. For example, if the target display element belongs to a weather element, the number of display elements of the weather element cannot exceed 5.
Step S314: and prompting the user that the total number of elements in the second process is greater than a second preset threshold value.
Step S315: a second data channel is initiated with the element service.
After determining to start establishing the channel, the user may select to drag the target display element back to the first process or release the hand, and place the target display element in the second process.
Step S316: drag the target display element back to the first process.
After the target display element is generated in the second process, the user continues to hold the target display element and controls the target display element to move in the second process, and before the user releases his hand, the user can drag the target display element back to the first process or to any third process.
Unlike the above embodiment, after the target display element is generated in the second progress, one way is that the user continues to manually move the target display element to the target position in the first progress based on the position adjustment operation (hold the target display element and move), and then release the hands; the other mode is that the user looses the hand, and the electronic device moves the target display element back to the original position of the target display element according to the dragging track in response to the loosening action of the user. The target position may be a home position of the target display element or may be any position within the first process.
Step S317: and deleting the target display element in the second process and establishing related data of a second data channel.
And after the target display element is dragged back to the first display area, deleting the target display element in the second process, and relevant data such as a second data channel established by the element service.
Step S318: in response to releasing the hand, the target display element is placed.
If the user releases the hands, the pressing of the target display element is stopped, and the element service sends a second instruction for restoring the refreshing of the target display element.
Step S319: whether the second process successfully added the target display element.
If yes, go to step S322; if not, go to step S321.
At this time, the element service determines whether the target display element is in the blacklist, if the target display element is in the blacklist, a second data channel of the target display element can be established between the element service and the second process, that is, the second process can successfully add the target display element, otherwise, the second process cannot successfully add the target display element.
Step S320: in response to releasing the hand, the target display element is deleted.
In which deleting the target display element, an animation effect in which the element disappears, such as an explosion disappearance effect, may be designed.
Step S321: and the second process informs the first process of the dragging failure.
Step S322: and the second process informs the first process that the dragging is successful.
And (6) ending.
Referring to fig. 11, fig. 11 is a flowchart illustrating an embodiment of a second preset condition.
In some embodiments, the preset condition may be a second preset condition, and specifically includes the following steps S401 to S406:
step S401: and judging whether the display state of the second process is a split screen state and/or a horizontal screen state.
In this embodiment, the first process may be a negative one-screen process, and the second process may be a desktop process.
In response to that the display state of the second process is not the split screen state and/or the landscape screen state (if no), executing step S402; if so, determining that the target display element cannot be moved to the second process, and then continuing monitoring the position adjusting instruction of the target display element.
Wherein, in the split screen state, the display screen is divided into two or more parts according to the proportion of 1. The landscape mode refers to the display content being displayed horizontally. When the display state of the second process is the split-screen state and/or the landscape state, it is indicated that the display interface where the second process is located has a plurality of display areas (windows), and there may be a plurality of processes, and the target display element may be dragged to other processes other than the second process, and other processes may not be dragged into the card without accessing the element service, so that it is determined that the target display element cannot be dragged to the second process when the display state of the second process is the split-screen state and/or the landscape state.
Step S402: and judging whether the current operation mode is a single-hand mode.
In response to the current operation mode being the one-handed mode (i.e., if yes), executing step S403; if not, determining that the target display element cannot move to the second process, and then continuing monitoring the position adjusting instruction of the target display element.
For the description of this step, refer to step S201 above, and will not be described herein again.
Step S403: and judging whether the second process supports cross-process element position adjustment or not.
In response to the second process supporting the adjustment of the element position across processes (i.e., if yes), executing step S404; if not, determining that the target display element cannot move to the second process, and then continuing monitoring the position adjusting instruction of the target display element. It is understood that not all processes may support cross-process element position adjustment, and that a second process may not support cross-process element position adjustment due to an older process version, missed element service, and the like. For example, when the second process is a desktop process, desktop implementation in the electronic device that was released longer may not support cross-process element position adjustment.
Step S404: and judging whether the target display element supports the display in the second process.
In response to the target display element supporting display in the second process (i.e., if yes), performing step S405; if not, determining that the target display element cannot move to the second process, and then continuing monitoring the position adjusting instruction of the target display element.
And screening the target display element to judge whether the target display element supports the display in the second process. Specifically, it may be determined that the type of the target display element belongs to support display in the second process, and if so, it is determined that the target display element supports display in the second process. For example, the desktop process does not support display of display elements of the game class, and if the target display element belongs to the game class, the target display element cannot be displayed in the second process.
Step S405: and judging whether the second process is in a locking state.
In response to the second process not being in the locked state (i.e., if no), executing step S406; if so, determining that the target display element cannot move to the second process, and then continuing monitoring the position adjusting instruction of the target display element.
The locking state means that the layout of elements in the second process cannot be changed, and includes moving display elements in other processes into the second process, adjusting the positions of the display elements in the second process, and the like. If the target display element moves into the second process, the layout of the elements in the second process will be changed.
Step S406: a target display element is generated within a second process.
For the description of step S406, refer to the foregoing embodiments, which are not repeated herein.
Referring to fig. 12, fig. 12 is a schematic flowchart illustrating a method for adjusting a position of a display element according to another embodiment of the present application. In this embodiment, the first process may be a negative one-screen process, and the second process may be a desktop process, where corresponding preset conditions are different based on different types of processes, and the specific preset conditions may be selected according to actual situations, which is only an example below.
The method may comprise the steps of:
and starting.
Step S501: the target display element is dragged within the first process.
Step S502: triggering a drag-to-second process.
Step S503: and whether the display state of the second process is a split screen state and/or a horizontal screen state.
If yes, go to step S505; if not, go to step S504.
Step S504: and cannot be dragged to the second process.
Step S505: whether the current operating mode is a one-handed mode.
If yes, go to step S507; if not, go to step S506.
Step S506: and cannot be dragged to the second process.
Step S507: whether the second process supports inter-process element position adjustment.
If yes, go to step S509; if not, go to step S508.
Step S508: and cannot be dragged to the second process.
Step S509: whether the target display element supports display at the second process.
If yes, go to step S511; if not, go to step S510.
Step S510: the user is prompted "target display element temporarily does not support display within the second process".
Step S511: whether the second process is in a locked state.
If yes, go to step S512; if not, go to step S513.
Step S512: the user is prompted "the second process is locked".
Step S513: a target display element is generated within a second process.
Step S514: a second data channel is initiated with the element service.
Step S515: drag the target display element back to the first process.
Step S516: and deleting the target display element in the second process and establishing related data of a second data channel.
Step S517: in response to releasing the hand, the target display element is placed.
Step S518: whether the second process successfully added the target display element.
If yes, go to step S521; if not, go to step S520.
Step S519: in response to releasing the hand, the target display element is deleted.
Step S520: and the second process informs the first process of the dragging failure.
Step S521: and the second process informs the first process that the dragging is successful.
And (6) ending.
For the description of the above steps, reference may be made to the foregoing embodiments, which are not repeated herein.
Referring to fig. 13 and 14, fig. 13 is a schematic flowchart of an embodiment of a method for adjusting a position of a display element of the present application, and fig. 14 is another schematic flowchart of the embodiment of the method for adjusting a position of a display element of the present application.
The method may comprise the steps of:
step S601: and receiving a position adjusting instruction of a user on a target display element, wherein the target display element is currently positioned in the first process.
For the step, please refer to the description of the relevant position in the previous embodiment, which is not repeated herein.
Step S602: based on the position adjustment instruction, a first instruction to stop refreshing the target display element is sent to the element service.
After the first process acquires the position adjusting instruction, the first process sends a first instruction to the element service, and the first instruction is used for informing the element service that the current target display element is in an adjusting state and the target display element needs to be stopped being refreshed. Correspondingly, after receiving the first instruction sent by the first process, the element service stops refreshing the target display element, that is, stops sending the data information of the target display element to the first process through the first data channel.
Step S603: based on the position adjustment instruction, a target display element is generated within the second process.
For the step, please refer to the description of the relevant position in the previous embodiment, which is not repeated herein.
After generating the target display element within the second process, determining that the adjustment operation is complete. Thereafter, so that step S604 can be performed to acquire the data information of the target display element from the element service, on the other hand, step S609 can be performed in which the first process sends an adjustment completion instruction to cause the first process to delete the data related to the target display element.
Step S604: and responding to the completion of the adjustment operation, and judging whether the target display element is positioned in the blacklist or not.
If the target display element is not in the blacklist (i.e., if no), step S605 is executed.
And if the identifier of the target display element is matched with the identifier in the blacklist, determining that the target display element is positioned in the blacklist.
Specifically, the element service may determine whether the target display element is located in a black list, add the target display element into a memory cache (blacklist) if the target display element is located in the black list, and no longer establish a data channel of the target display element with the second process, and if the target display element is not located in the black list, indicate that a second data channel of the target display element can be established between the element service and the second process.
Step S605: a second data channel is established between the element service and a second process.
For the step, please refer to the description of the relevant position in the previous embodiment, which is not repeated herein.
Step S606: and sending a second instruction for resuming the refreshing of the target display element to the element service.
Step S607: and sending the data information of the element service corresponding to the target display element to the second process through the second data channel.
Specifically, after the second data channel is established, the second process may send a second instruction to the element service to notify that the element service may currently refresh the target display element, so that the element service sends the data information of the target display element to the second process through the second data channel.
Step S608: and displaying the data information in the view of the target display element in the second process.
For the step, please refer to the description of the relevant position in the previous embodiment, which is not repeated herein.
Step S609: and sending an adjustment completion instruction to the first process.
Specifically, an adjustment completion instruction (endflag) may be sent by the second process to the first process through a custom interface between the first process and the second process. View information of a target display element is transmitted to a second process through a clip object (lipData) in a dragging frame of the system, and after the second process receives the view information, in order to guarantee the data volume transmitted among the processes and real-time effectiveness, a user-defined interface among the processes is used for assisting dragging interaction. The custom Interface is, for example, an Android Interface Definition Language (AIDL). As shown in fig. 2 and fig. 3, the view information (denoted as draginfo) may be transmitted in Json format. The Json format has the advantages of small data transmission quantity and power consumption, strong universality and simple implementation mode.
Step S610: deleting, by the first process, the target display element and un-servicing the first data channel of the element with the first process with respect to the target display element.
And after receiving the adjusted instruction, the first process deletes the target display element in the first process and releases the element service and a first data channel of the first process about the target display element. Specifically, a listen callback (callback) message with respect to the target display element may be removed, and a listen command (observeconmand) of the target display element may be deleted.
Step S611: a channel release instruction is sent to the element service.
Step S612: based on the channel release instruction, the element service deletes the relevant data of the local first data channel.
The first process then sends a channel release instruction to the element service to inform the element service that data associated with the local first data channel can be deleted. For example, the cache data of the first data channel is deleted.
The element position adjusting method is different from the existing dragging framework, the existing dragging can only support simple view dragging, and cannot complete the functions related to the service, such as dragging isolation among multiple services, bidirectional data notification and acquisition, unaffected performance and power consumption, more uniform interaction and richer elements. And applying for, drag interaction based on element service, can keep apart each process, secondly, can realize utilizing drag frame to accomplish the view and drag back based on self-defined interface (AIDL), realize two-way data notification and acquisition (for example send adjustment and accomplish instruction etc.) between first process and the second process, furthermore, through restricting data format json, and the realization such as the card quantity that the restriction second process holds, secondly, can unify the parameter such as the style of setting up display element in the multiprocess, size, realize the unification of display element between the multiprocess, in addition, in element position adjustment process, can also design interactive animation, for example when deleting the target display element in the second process, can design the animation effect that the element disappears, for example, the effect that disappears etc. explodes, promote the interest in the interactive process. Furthermore, on the basis of not increasing power consumption, the dragging requirement between processes is seamlessly realized, and the experience is not different from the dragging effect on the same page.
Referring to fig. 15, fig. 15 is a schematic block diagram of an embodiment of an element position adjustment apparatus according to the present application.
In the present embodiment, the element position adjustment apparatus 100 includes an instruction receiving module 110, an element generating module 120, a channel establishing module 130, an information transmitting module 140, and a data displaying module 150.
The instruction receiving module 110 is configured to receive a position adjustment instruction of a target display element by a user, where the target display element is currently located in a first process; the element generation module 120 is configured to generate a target display element within the second process based on the position adjustment instruction; the channel establishing module 130 is configured to establish a second data channel between the element service and the second process in response to completion of the adjustment operation; the information sending module 140 is configured to send, through a second data channel, data information of the element service, which corresponds to the target display element, to the second process; the data display module 150 is configured to display the data information in the view of the target display element in the second process.
In some embodiments, the position adjustment instruction includes a first operation instruction and a second operation instruction, and the element generation module 120 is further configured to select, in response to the first operation instruction of the user, a target display element in the first display area corresponding to the first process; responding to a second operation instruction of the user, and controlling the target display element to move in the first display area; and generating the target display element in the second process in response to the target display element moving to be within the preset boundary range of the first display area.
In some embodiments, the element generation module 120 is further configured to send view information of the target display element to the second process; controlling the second process to generate the target display element within the second process based on the view information.
In some embodiments, the element generation module 120 is further configured to generate the target display element within the second process in response to a preset condition being met; wherein the preset condition comprises at least one of the following conditions: the current operation mode is a single-hand mode; use of the second process is enabled; a second display area corresponding to the second process is loaded; the display state of the second process is not a split screen state and/or a horizontal screen state; the second process supports cross-process element position adjustment; judging that the target display element supports display in the second process; the second process is not in a locked state.
In some embodiments, in response to a preset condition being met, generating the target display element within the second process includes: judging whether the current operation mode is a single-hand mode or not; in response to the current operation mode being the one-handed mode, determining whether use of the second process is enabled; in response to the use of the second process being enabled, determining whether a second display area corresponding to the second process is loaded; generating a target display element within the second process in response to whether a second display area corresponding to the second process is loaded; or in response to a preset condition being met, generating a view of the target display element at a second process, including: judging whether the display state of the second process is a split screen state and/or a horizontal screen state; responding to the fact that the display state of the second process is not the split screen state and/or the horizontal screen state, and judging whether the current operation mode is the single-hand mode or not; responding to the current operation mode being a single-hand mode, judging whether the second process supports cross-process element position adjustment; responding to the second process supporting cross-process element position adjustment, and judging whether the target display element supports display in the second process; in response to determining that the target display element supports display in the second process, determining whether the second process is in a locked state; in response to the second process not being in the locked state, a target display element is generated at the second process.
In some embodiments, the channel establishing module 130 is further configured to determine whether the target display element is in the blacklist in response to the adjusting operation being completed; if the target display element is not located in the blacklist, a second data channel is established between the element service and the second process.
In some embodiments, the element position adjusting apparatus 100 further includes an adjustment completion instruction sending module (not shown), a first deleting module (not shown), and a second deleting module (not shown), where the adjustment completion instruction sending module is configured to send an adjustment completion instruction to the first process after the target display element is generated in the second process based on the position adjustment instruction; the element deleting module is used for deleting the target display element by the first process and removing a first data channel of the element service and the first process about the target display element; and sending a channel release instruction to the element service; the second deletion module is used for deleting the related data of the local first data channel by the element service based on the channel release instruction.
In some embodiments, the adjustment completion instruction sending module is further configured to send, by the second process, the adjustment completion instruction to the first process through a custom interface between the first process and the second process.
In some embodiments, the instruction receiving module 110 is further configured to send, to the element service, a first instruction to stop refreshing the target display element based on the position adjustment instruction before generating the target display element in the second process based on the position adjustment instruction; and/or the element generating module 120 is further configured to send a second instruction to resume refreshing the target display element to the element service before sending the data information of the element service corresponding to the target display element to the second process through the second data channel.
In the above, the description of each step may refer to the corresponding position in the foregoing embodiments, and is not repeated here.
Referring to fig. 16, fig. 16 is a schematic block diagram of a structure of an electronic device according to an embodiment of the present application.
The electronic device 200 comprises a memory 210 and a processor 220 coupled to each other, the memory 210 being adapted to store program data and the processor 220 being adapted to execute the program data to implement the steps of any of the above-described method embodiments.
The electronic device 200 may include, but is not limited to: personal computers (e.g., desktop computers, laptop computers, tablet computers, palmtop computers, etc.), mobile phones, servers, wearable devices, as well as Augmented Reality (AR), virtual Reality (VR) devices, televisions, etc., without limitation thereto.
In particular, the processor 220 is configured to control itself and the memory 210 to implement the steps of any of the above-described method embodiments. Processor 220 may also be referred to as a Central Processing Unit (CPU). Processor 220 may be an integrated circuit chip having signal processing capabilities. The Processor 220 may also be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, processor 220 may be commonly implemented by multiple integrated circuit chips.
Referring to fig. 17, fig. 17 is a schematic block diagram of a structure of an embodiment of a computer-readable storage medium according to the present application.
The computer readable storage medium 300 stores program data 310, and the program data 310 is used for implementing the steps of any of the above-described method embodiments when executed by a processor.
The computer-readable storage medium 300 may be a medium that can store a computer program, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the computer program, and the server may send the stored computer program to another device for running or may run the stored computer program by itself.
Above, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" in the present application means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of a, B, and C, and may mean including any one or more elements selected from the group consisting of a, B, and C.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some interfaces, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are merely examples, and not intended to limit the scope of the present application, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present application, or those directly or indirectly applied to other related arts, are included in the scope of the present application.
Claims (12)
1. A method for adjusting the position of a display element, comprising:
receiving a position adjusting instruction of a user on a target display element, wherein the target display element is currently located in a first process;
generating the target display element within a second process based on the position adjustment instruction;
in response to completion of the tuning operation, establishing a second data channel between the element service and the second process;
sending data information of the element service corresponding to the target display element to the second process through the second data channel;
displaying the data information within the view of the target display element within the second process.
2. The method of claim 1, wherein the position adjustment instruction comprises a first operation instruction and a second operation instruction,
the generating the target display element within the second process based on the position adjustment instruction comprises:
responding to a first operation instruction of a user, and selecting a target display element in a first display area corresponding to the first process;
controlling the target display element to move in the first display area in response to a second operation instruction of a user;
and responding to the target display element moving to the preset boundary range of the first display area, and generating the target display element in the second process.
3. The method of claim 2,
the generating the target display element within the second process comprises:
sending view information of the target display element to the second process;
controlling the second process to generate the target display element within the second process based on the view information.
4. The method of claim 1,
the generating the target display element in a second process based on the position adjustment instruction further comprises:
in response to a preset condition being met, generating the target display element within the second process; wherein the preset condition comprises at least one of the following conditions:
the current operation mode is a single-hand mode;
the use of the second process is enabled;
a second display area corresponding to the second process is loaded;
the display state of the second process is not a split screen state and/or a horizontal screen state;
the second process supports cross-process element position adjustment;
the target display element supports display at the second process;
the second process is not in a locked state.
5. The method of claim 4,
the generating the target display element in the second process in response to meeting a preset condition comprises:
judging whether the current operation mode is a single-hand mode or not;
in response to the current operation mode being a one-handed mode, determining whether use of the second process is enabled;
in response to the use of the second process being enabled, determining whether a second display area corresponding to the second process is loaded;
generating the target display element in the second process in response to whether a second display area corresponding to the second process is loaded; or
The generating, in response to meeting a preset condition, a view of the target display element at the second process includes:
judging whether the display state of the second process is a split screen state and/or a horizontal screen state;
responding to the fact that the display state of the second process is not the split screen state and/or the horizontal screen state, and judging whether the current operation mode is the single-hand mode or not;
responding to the current operation mode being a single-hand mode, and judging whether the second process supports cross-process element position adjustment;
responding to the second process supporting cross-process element position adjustment, and judging whether the target display element supports display in the second process;
responding to the display of the target display element supported in the second process, and judging whether the second process is in a locking state;
in response to the second process not being in a locked state, generating the target display element at the second process.
6. The method of claim 1,
said establishing a second data channel between an element service and the second process in response to the adjustment operation being completed, comprising:
in response to completion of the adjustment operation, determining whether the target display element is located in a blacklist;
and if the target display element is not in the blacklist, establishing a second data channel between the element service and the second process.
7. The method of claim 1,
after the generating the target display element in the second process based on the position adjustment instruction, the method further includes:
sending an adjustment completion instruction to the first process;
deleting, by the first process, the target display element and freeing the element service from the first data channel of the first process with respect to the target display element;
sending a channel release instruction to the element service;
based on the channel release instruction, deleting, by the element service, data associated with the first data channel locally.
8. The method of claim 1, wherein sending an adjustment completion instruction to the first process comprises:
and sending the adjustment completion instruction to the first process by the second process through a custom interface between the first process and the second process.
9. The method of claim 1,
the method further comprises, before generating the target display element in the second process based on the position adjustment instruction:
based on the position adjusting instruction, sending a first instruction for stopping refreshing the target display element to the element service; and/or
Before the sending, to the second process, the data information of the element service corresponding to the target display element through the second data channel, the method further includes:
and sending a second instruction for resuming the refreshing of the target display element to the element service.
10. An element position adjusting apparatus, comprising:
the instruction receiving module is used for receiving a position adjusting instruction of a user on a target display element, wherein the target display element is currently located in a first process;
an element generation module to generate the target display element within a second process based on the position adjustment instruction;
a channel establishing module, configured to establish a second data channel between the element service and the second process in response to completion of the adjustment operation;
the information sending module is used for sending the data information of the element service corresponding to the target display element to the second process through the second data channel;
and the data display module is used for displaying the data information in the view of the target display element in the second process.
11. An electronic device, characterized in that the electronic device comprises a memory and a processor coupled to each other, the memory being adapted to store program data and the processor being adapted to execute the program data to implement the method according to any of claims 1-9.
12. A computer-readable storage medium, in which program data are stored which, when being executed by a processor, are adapted to carry out the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210987454.7A CN115390731A (en) | 2022-08-17 | 2022-08-17 | Position adjustment method and device of display element, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210987454.7A CN115390731A (en) | 2022-08-17 | 2022-08-17 | Position adjustment method and device of display element, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115390731A true CN115390731A (en) | 2022-11-25 |
Family
ID=84119849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210987454.7A Pending CN115390731A (en) | 2022-08-17 | 2022-08-17 | Position adjustment method and device of display element, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115390731A (en) |
-
2022
- 2022-08-17 CN CN202210987454.7A patent/CN115390731A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2446619B1 (en) | Method and device for modifying a composite video signal layout | |
WO2020190520A1 (en) | User interaction with shared content during a virtual meeting | |
JP5892121B2 (en) | Information processing apparatus, control method, program, and information processing system | |
WO2016106997A1 (en) | Screen capture method and device, and mobile terminal | |
CN111679881B (en) | File processing method and device, computer equipment and storage medium | |
JP6504256B2 (en) | Electronic blackboard, electronic blackboard image processing method, and recording medium recording electronic blackboard program | |
CN103795948A (en) | Display apparatus and method for controlling thereof | |
US20200293493A1 (en) | Enabling User Interaction with Shared Content During a Virtual Meeting | |
EP4343580A1 (en) | Media file processing method and apparatus, device, readable storage medium, and product | |
CN111679772B (en) | Screen recording method and system, multi-screen device and readable storage medium | |
US20240095049A1 (en) | Control Method, Electronic Device, and Non-Transitory Readable Storage Medium | |
CN111930278B (en) | Intelligent interaction device, intelligent interaction method, and storage medium | |
WO2024046266A1 (en) | Video management method and apparatus, electronic device, and readable storage medium | |
WO2024012416A1 (en) | Display method and apparatus | |
CN115390731A (en) | Position adjustment method and device of display element, electronic equipment and storage medium | |
CN115469958A (en) | Cross-device control method, cross-device control device and electronic device | |
KR20150009103A (en) | Method and terminal of sharing between terminals to protect privacy | |
CN115421846A (en) | Cross-device control method, control device, electronic device and readable storage medium | |
US11631159B2 (en) | Zoom control of digital images on a display screen | |
CN115277670A (en) | Network connection control method and device of target application and electronic equipment | |
CN114780192A (en) | Remote assistance method, remote assistance device and electronic equipment | |
JP5994898B2 (en) | Information processing apparatus, information processing apparatus control method, and program | |
JP7567076B2 (en) | Shared Content Session User Interface | |
JP7549162B2 (en) | Shared Content Session User Interface | |
CN115712471A (en) | Cross-device control method, cross-device control device and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |