Method and device for processing handwriting input

In the handwriting input processing of electronic devices, the third layer of occlusion layer is used to solve the overlay display problem, ensuring the integrity and accuracy of handwriting input and improving the user experience.

CN118034568BActive Publication Date: 2024-08-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410430681.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-08-27
Estimated Expiration
2044-04-11

AI Technical Summary

Technical Problem

When electronic devices process handwriting input, they are prone to display inaccuracies caused by overlay display, which affects the user experience.

Method used

By setting a third occlusion layer between the first layer and the second layer, overlapping display is avoided, and when switching the handwriting input area, the first layer is used to first carry the handwriting input content to obtain a more complete input event.

Benefits of technology

It effectively reduces the problem of inaccurate handwriting input display caused by overlay display, improves the completeness and accuracy of handwriting input, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118034568B
    Figure CN118034568B
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device for processing handwriting input, which relates to the field of terminal technology. The method includes: receiving a first handwriting input; then using the first layer to carry the content of the first handwriting input; in the process of using the first layer to receive the first handwriting input, pulling up the second layer, copying the content of the first handwriting input received by the first layer to the second layer, and in the process of copying the content of the first handwriting input received by the first layer to the second layer, a third layer is provided between the first layer and the second layer, and the third layer is used to form an obstruction between the second layer and the area in the first layer that receives the first handwriting input; after completing the copying of the content of the first handwriting input received by the first layer to the second layer, removing the third layer, and canceling the display of the content in the first layer. In this way, the display effect of the handwriting input can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method and device for handwriting input processing. Background Art

[0002] With the development of terminal technology, handwriting input technology has emerged. Electronic devices can receive handwriting input from users and display the handwriting input.

[0003] However, when electronic devices process handwriting input, the processing effect of handwriting input is not good. Summary of the invention

[0004] The embodiments of the present application provide a method and device for processing handwriting input, which are applied in the field of terminal technology and can improve the processing effect of handwriting input.

[0005] In a first aspect, an embodiment of the present application provides a handwriting input processing method, comprising:

[0006] A first handwriting input is received; the first layer is used to carry the content of the first handwriting input; in the process of using the first layer to receive the first handwriting input, a second layer is pulled up, the second layer is a layer for carrying the first handwriting input; the content of the first handwriting input received by the first layer is copied to the second layer, wherein in the process of copying the content of the first handwriting input received by the first layer to the second layer, a third layer is provided between the first layer and the second layer, the third layer is used to form an obstruction between the second layer and the area in the first layer receiving the first handwriting input; after completing the copying of the content of the first handwriting input received by the first layer to the second layer, the third layer is removed, and the display of the content in the first layer is canceled.

[0007] In the embodiment of the present application, in the process of copying the content of the first handwriting input received by the first layer to the second layer, a third layer is provided between the first layer and the second layer, and the third layer is used to form an obstruction between the second layer and the area in the first layer that receives the first handwriting input. In this way, due to the effect of the obstruction, the first handwriting inputs of the first layer and the second layer will not be displayed in an overlapping manner, thereby reducing the situation where the first handwriting input is displayed inaccurately due to the overlapping display. In addition, the first layer is first used to carry the content of the first handwriting input, and then in the process of using the first layer to receive the first handwriting input, the second layer is pulled up, and then the content of the first handwriting input received by the first layer is copied to the second layer. In this way, the first layer can be used to carry the first input event of the first handwriting input, so that a more complete first handwriting input can be obtained, thereby improving the integrity of the carried first handwriting input.

[0008] In a possible implementation, receiving a first handwriting input includes:

[0009] Displaying a first interface, the first interface including a first area and a second area; receiving a first operation of switching from the second area to the first area; receiving a first handwriting input acting on the first area in response to the first operation; using the first layer to carry the content of the first handwriting input, including:

[0010] The first layer is used to carry the first handwriting input content in the first area.

[0011] The embodiment of the present application utilizes the first layer to carry the first handwriting input content of the first area when receiving the first operation of switching from the second area to the first area. In this way, when switching the handwriting areas, for example, when the handwriting input is switched from the second area to the first area, the first layer can be used to carry it first, so handwriting can be performed directly in the first area, thereby improving the efficiency and convenience of handwriting input.

[0012] In a possible implementation, the method further includes:

[0013] A second operation is received to turn from the first area to the second area; in response to the second operation, a second handwriting input acting on the second area is received; the first layer is used to carry the content of the second handwriting input of the second area; in the process of using the first layer to carry the content of the second handwriting input of the second area, the fourth layer is pulled up, and the fourth layer is a layer for carrying the second handwriting input of the second area; the content of the second handwriting input of the second area received by the first layer is copied to the fourth layer, wherein in the process of copying the content of the second handwriting input of the second area received by the first layer to the fourth layer, a fifth layer is arranged between the first layer and the fourth layer, and the fifth layer is used to form an obstruction between the fourth layer and the area in the first layer that receives the second handwriting input; after completing the copying of the content of the second handwriting input of the second area received by the first layer to the fourth layer, the fifth layer is removed, and the display of the content in the first layer is canceled.

[0014] The embodiment of the present application can not only switch the handwriting input from the first area to the second area, but also switch the handwriting input from the second area to the first area. When switching from the first area to the second area, handwriting can also be directly performed in the second area. In this way, the applicability and comprehensiveness of the handwriting input area switching can be improved.

[0015] In a possible implementation, the method further includes:

[0016] When the second operation is received, the content of the first handwriting input carried by the second layer is inserted into the first area in an image manner and the second layer is removed.

[0017] In the embodiment of the present application, the first handwriting input content carried by the second layer is inserted into the first area in the form of an image and the second layer is removed, so that the number of layers can be reduced, thereby saving layer resources. In addition, the first handwriting input content carried by the second layer is inserted into the first area in the form of an image and the second layer is removed. When the display direction of the content in the first area is changed, for example, from vertical to horizontal or from horizontal to vertical, since the content in the first area is in the form of an image, the display confusion caused by the first area being unrelated to the layer can be reduced, thereby improving the display accuracy when the display direction of the content in the first area is changed.

[0018] In a possible implementation, before using the first layer to carry the content of the first handwriting input, the method further includes:

[0019] Setting the first layer from a first state to a second state, wherein the first state includes a state that cannot carry handwriting input, and the second state includes a state that can carry handwriting input; canceling the display of content in the first layer includes: setting the first layer from the second state to the first state.

[0020] The embodiment of the present application sets the first layer from the first state to the second state before using the first layer to carry the first handwriting input content, and sets the first layer from the second state to the first state when the content copying is completed. In other words, the switching of the state of the first layer is controlled, so that the first layer can carry the handwriting input as soon as possible, thereby improving the integrity of the carried handwriting input.

[0021] In a possible implementation, copying the content of the first handwriting input received by the first layer to the second layer includes: writing the content of the first handwriting input received by the first layer into a message queue, and copying the content in the message queue to the second layer.

[0022] The embodiment of the present application writes the content of the first handwriting input received by the first layer into a message queue and copies the content in the message queue to the second layer. This can reduce the situation where part of the handwriting input is lost due to directly copying the first handwriting input received by the first layer to the second layer but the second layer is not pulled up, thereby improving the integrity of the handwriting input carried by the second layer.

[0023] In a possible implementation, the method further includes:

[0024] When the content of the first handwriting input received at the first layer is copied to the second layer, a third layer is generated.

[0025] The embodiment of the present application generates a third layer by copying the content of the first handwriting input received by the first layer to the second layer. The third layer can be created when shielding is required, thereby improving the effective utilization rate of the layers.

[0026] In a possible implementation, the method further includes:

[0027] Displaying a second interface, the second interface includes a third area supporting handwriting input; utilizing the sixth layer to carry a third handwriting input acting on the third area; receiving a third operation on the third area; in response to the third operation, adjusting the size of the third area and the seventh layer, the seventh layer being a layer for carrying the third handwriting input; upon completion of the size adjustment of the seventh layer, copying the content of the third handwriting input received by the sixth layer to the seventh layer; after completing the copying of the content of the third handwriting input received by the sixth layer to the seventh layer, removing the sixth layer and canceling the display of the content in the sixth layer.

[0028] The embodiment of the present application adjusts the size of the third area and the seventh layer, and when the size adjustment of the seventh layer is combined, the content of the third handwriting input received is copied to the seventh layer, and after completing the copying of the content of the third handwriting input received by the sixth layer to the seventh layer, the sixth layer is removed, and the content display in the sixth layer is canceled. The content carried by the seventh layer can be empty. In this way, the seventh layer will not experience content jumps when the size adjustment is completed. Then, the content of the sixth layer is copied to the seventh layer, so that the seventh layer can inherit the content of the sixth layer, and after canceling the content display of the sixth layer, there will be no multi-layer superposition display to cause inaccurate display.

[0029] In a possible implementation, the method further includes:

[0030] In the process of copying the content of the third handwriting input received by the sixth layer to the seventh layer, an eighth layer is provided between the sixth layer and the seventh layer, and the eighth layer is used to form an occlusion between the areas receiving the third handwriting input in the sixth layer and the seventh layer.

[0031] In the embodiment of the present application, an eighth layer is arranged between the sixth layer and the seventh layer during the process of copying the content of the third handwriting input received by the sixth layer to the seventh layer. The eighth layer is used to form an obstruction between the areas receiving the third handwriting input in the sixth layer and the seventh layer, thereby reducing the display inaccuracy caused by multi-layer superposition display during the copying process.

[0032] In a possible implementation, the method includes:

[0033] Displaying a third interface, the third interface includes a fourth area supporting handwriting input; receiving a fifth operation for the fourth area; adjusting the size of the fourth area in response to the fifth operation; when the size adjustment of the fourth area is completed, adjusting the size of the ninth layer to match the size of the fourth area, the ninth layer being used to carry the fourth handwriting input acting on the fourth area.

[0034] The embodiment of the present application adjusts the size of the fourth area; when the size adjustment of the fourth area is completed, the size of the ninth layer is adjusted to match the size of the fourth area, so that the hand tracking performance of the adjusted handwriting area can be improved.

[0035] In a second aspect, an embodiment of the present application provides a handwriting input processing method, including:

[0036] Display a second interface, the second interface includes a third area supporting handwriting input; use the sixth layer to carry the third handwriting input acting on the third area; receive a third operation on the third area; in response to the third operation, adjust the size of the third area and the seventh layer, the seventh layer is a layer for carrying the third handwriting input; when the size adjustment of the seventh layer is completed, copy the content of the third handwriting input received by the sixth layer to the seventh layer, wherein in the process of copying the content of the third handwriting input received by the sixth layer to the seventh layer, an eighth layer is set between the sixth layer and the seventh layer, and the eighth layer is used to form an obstruction between the areas receiving the third handwriting input in the sixth layer and the seventh layer; after completing the copying of the content of the third handwriting input received by the sixth layer to the seventh layer, remove the sixth layer, and cancel the display of the content in the sixth layer.

[0037] In the embodiment of the present application, the size of the third area and the seventh layer is adjusted. When the size of the seventh layer is adjusted, the content of the third handwriting input received is copied to the seventh layer. After the content of the third handwriting input received by the sixth layer is copied to the seventh layer, the sixth layer is removed, and the content display in the sixth layer is canceled. The content carried by the seventh layer can be empty. In this way, the seventh layer will not have a content jump when the size adjustment is completed. Then the content of the sixth layer is copied to the seventh layer, so that the seventh layer inherits the content of the sixth layer, and after canceling the content display of the sixth layer, there will be no inaccurate display caused by the formation of multiple layers of superimposed display. In addition, in the process of copying the content of the third handwriting input received by the sixth layer to the seventh layer, an eighth layer is set between the sixth layer and the seventh layer. The eighth layer is used to form an occlusion between the sixth layer and the seventh layer where the third handwriting input is received, which can reduce the inaccurate display caused by the multi-layer superimposed display during the copying process.

[0038] In a possible implementation, the method further includes:

[0039] Receiving a fourth operation acting on the third area; in response to the fourth operation, displaying a control for adjusting the third area on the second interface; Receiving a third operation for the third area, including:

[0040] A third operation acting on a control to adjust a third region is received.

[0041] The embodiment of the present application receives the fourth operation acting on the third area, displays the control for adjusting the third area on the second interface, and then receives the third operation for the control to adjust the size of the handwriting area. In this way, it is possible to reduce misjudgments due to direct operations on the handwriting area, such as reducing the situation where a drag operation is pulled downward but may be mistakenly recognized as a handwritten input number "1", thereby improving the accuracy of handwriting area adjustment.

[0042] In a possible implementation, the method further includes:

[0043] Displaying a third interface, the third interface includes a fourth area supporting handwriting input; receiving a fifth operation for the fourth area; adjusting the size of the fourth area in response to the fifth operation; when the size adjustment of the fourth area is completed, adjusting the size of the ninth layer to match the size of the fourth area, the ninth layer being used to carry the fourth handwriting input acting on the fourth area.

[0044] In a third aspect, an embodiment of the present application provides a handwriting input processing method, including:

[0045] Displaying a third interface, the third interface includes a fourth area supporting handwriting input; receiving a fifth operation for the fourth area; adjusting the size of the fourth area in response to the fifth operation; when the size adjustment of the fourth area is completed, adjusting the size of the ninth layer to match the size of the fourth area, the ninth layer being used to carry the fourth handwriting input acting on the fourth area.

[0046] In a possible implementation, the fourth area includes a target image, the target image includes a fourth handwriting input acting on the fourth area, and adjusting the size of the fourth area includes:

[0047] Adjust the size of the target image.

[0048] The embodiment of the present application adjusts the target image when including the target image in the fourth area, so that the size of the target image can be adaptively adjusted, which facilitates the subsequent insertion of new handwritten input content in the target image and improves the efficiency of inserting new handwritten input content in the target image.

[0049] In a possible implementation, the method is applied to an electronic device, the electronic device includes a first module for managing the fourth area and a second module for managing the ninth layer, and adjusting the size of the fourth area includes:

[0050] The size of the fourth area is adjusted using the first module; the size of the ninth layer is adjusted to match the size of the fourth area, including: using the first module to transmit size adjustment information of the fourth area to the second module, and using the second module to adjust the size of the ninth layer according to the size adjustment information.

[0051] The embodiment of the present application manages regions and layers through different modules, which can improve the management independence of regions and layers, and can improve the independence and synchronization of adjustment of regions and layers.

[0052] In a fourth aspect, an embodiment of the present application provides a handwriting input processing device, which may be an electronic device, or a chip or chip system in an electronic device. The handwriting input processing device may include a display unit and a processing unit. When the handwriting input processing device is an electronic device, the display unit may be a display screen. The display unit is used to perform the display step so that the electronic device implements the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect. When the handwriting input processing device is an electronic device, the processing unit may be a processor. The handwriting input processing device may also include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit so that the electronic device implements a handwriting input processing method described in the first aspect or any possible implementation of the first aspect. When the handwriting input processing device is a chip or chip system in an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit so that the electronic device implements a handwriting input processing method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit within the chip (eg, a register, a cache, etc.), or a storage unit within the electronic device that is located outside the chip (eg, a read-only memory, a random access memory, etc.).

[0053] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect.

[0054] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect.

[0055] In the seventh aspect, an embodiment of the present application provides a computer program product including a computer program. When the computer program runs on a computer, the computer executes the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect.

[0056] In an eighth aspect, the present application provides a chip or a chip system, the chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect. Among them, the communication interface in the chip can be an input / output interface, a pin or a circuit, etc.

[0057] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (such as a read-only memory, a random access memory, etc.).

[0058] It should be understood that the fourth to eighth aspects of the present application correspond to the technical solutions of the first to third aspects of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0060] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0061] Figure 3-Figure 4 A schematic diagram of switching a handwriting input area provided in an embodiment of the present application;

[0062] Figure 5A schematic diagram of adjusting the size of a handwriting area provided in an embodiment of the present application;

[0063] Figure 6 A schematic diagram of another method for adjusting the size of a handwriting area provided in an embodiment of the present application;

[0064] Figure 7 A flowchart of a handwriting input processing method provided in an embodiment of the present application;

[0065] Figure 8 A flowchart of another handwriting input processing method provided in an embodiment of the present application;

[0066] Fig. 9 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0068] 1. Handwriting input:

[0069] Handwriting input mainly involves touch screen technology and handwriting recognition technology. Among them, the touch screen senses the position, pressure and speed of the user's finger or stylus and converts this information into digital signals. When the user writes on the screen, the touch screen detects the position and movement trajectory of the finger or stylus. This information will be transmitted to the processor for processing, and the processor will convert the user's handwriting into an electronic format based on the received signal.

[0070] 2. Rich text layer:

[0071] A rich text layer is a graphical user interface element used to display and edit rich text content. Rich text usually contains rich content such as formatted text, images, links, lists, etc., and the rich text layer can be used to display and process these contents in the application. The definition and function of the rich text layer include the following aspects:

[0072] (1) Displaying rich text content: The rich text layer can be used to display text content containing different styles, formats, and elements, such as bold, italic, color, font size, etc. Users can view and read text information with rich formats through the rich text layer.

[0073] (2) Editing rich text content: The rich text layer usually also provides editing functions, in which users can edit the text content and apply various styles and formats. This makes it easy for users to create and edit rich text documents without having to understand or remember a specific markup language.

[0074] (3) Support for multimedia content: In addition to text, the rich text layer can also contain multimedia content such as images, links, and tables. Users can insert and edit various types of content in it, thereby achieving richer and more diverse information display.

[0075] In general, the rich text layer plays an important role in displaying and processing rich text content in applications, providing users with richer and more intuitive information display and editing functions. In many applications, the rich text layer is widely used in scenarios such as text editors, email clients, and social media applications.

[0076] 3. Handwriting layer:

[0077] The handwriting layer is a graphical user interface element used for handwriting input and drawing in applications. The handwriting layer usually provides handwriting recognition and drawing functions, allowing users to use a stylus or stylus to input and draw handwriting on the screen. The definition and role of the handwriting layer include the following aspects:

[0078] (1) Handwriting input: The handwriting layer allows users to use a stylus or stylus to input handwriting on the screen. Users can input text, numbers, symbols, etc. by handwriting without using a keyboard or virtual keyboard.

[0079] (2) Handwriting recognition: The handwriting layer usually has a handwriting recognition function that can convert the user's handwriting content into text or other recognizable formats. This allows users to easily convert handwriting content into digital text information.

[0080] (3) Drawing function: In addition to handwriting input, the handwriting layer usually provides a drawing function, in which users can freely draw, doodle, annotate, etc. This allows users to draw and mark creatively in the application.

[0081] (4) Handwriting editing: The handwriting layer may also include handwriting editing functions, where users can adjust the thickness, color, eraser and other properties of the handwriting to better control and modify the handwriting or drawing content.

[0082] In general, the handwriting layer provides users with an intuitive and natural input method, which is suitable for applications that require handwriting input or drawing operations. In scenarios such as digital notes, drawing software, signature confirmation, etc., the handwriting layer is widely used, providing users with a more flexible and convenient operation experience.

[0083] 4. Web view:

[0084] Web view is a user interface element used to display web content in an application. It has a built-in browser engine that can load and display web pages, web applications, or other online content. Users can browse the web directly inside the application without leaving the application. Web view is mainly used to display web content. It supports functions such as loading, rendering, and interacting with web pages, and can achieve a complete interactive experience with web content.

[0085] 5. Placeholder image:

[0086] Placeholders generally refer to temporary images or placeholders used in place of actual content. These images usually have simple geometric shapes or blurred patterns and are used to fill in blank areas where content has not yet been determined so that layout and typography can be previewed. Placeholders help indicate where content should be placed and at what size. Placeholders can also refer to virtual placeholders used in place of unfinished features or interface elements. These placeholders can help with layout design and feature planning.

[0087] In handwritten notes, placeholders are often used to replace locations or elements whose contents are temporarily undetermined. For example, when a user leaves a blank area in a handwritten note but has not yet determined what to fill it with, a placeholder can be used to represent this location. This helps users maintain the integrity and logic of the layout when writing notes.

[0088] 6. Other terms:

[0089] In the application embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0090] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any application embodiment or design scheme described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other application embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0091] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0092] 7. Electronic equipment:

[0093] The electronic device of the embodiment of the present application may include a handheld device, a vehicle-mounted device, etc. with a power on / off function, a display function, or a shooting function. For example, some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks (PLMNs). The embodiments of the present application do not limit this.

[0094] As an example but not limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.

[0095] In addition, in the embodiments of the present application, the electronic device may also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network that interconnects people and machines and things.

[0096] The electronic device in the embodiments of the present application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0097] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0098] The following application examples illustrate the scenarios of the embodiments of the present application.

[0099] In some scenarios, the electronic device includes a rich text layer. When the electronic device is in an editing state, the electronic device also includes a small layer 1, and the small layer 1 is used to carry the user's handwriting input. Then, when the electronic device enters the display state, the input carried by the small layer 1 is inserted into the rich text layer in the form of a picture, and the small layer 1 is deleted. In this way, the carried input can be carried in the rich text layer to be displayed in the rich text layer. Then, when entering the editing state again, the large layer in the hidden state is switched to the visible state, and the large layer is first used to carry the user's handwriting input, and the small layer 1 is re-created. After the small layer 1 is created, the input carried by the large layer is copied to the small layer 1 at the same position, and the large layer is hidden. In this way, the small layer 1 can not only carry the handwriting input before the creation is completed, but also continue to use the small layer 1 to receive handwriting input later.

[0100] The editing state may be a state in which the content is edited, including but not limited to at least one of modification, addition or deletion of the content. Optionally, in the editing state, the electronic device may receive handwriting input and display it; in the display state, the electronic device may display handwriting input but may not receive handwriting input and display it. If handwriting input needs to be received, it needs to switch to the editing state.

[0101] Generally speaking, both the small layer 1 and the large layer are transparent. Therefore, before the input carried by the large layer is copied to the small layer 1 and the large layer is hidden, the handwriting input of the large layer and the small layer 1 at the same position is superimposed. If the handwriting input is transparent, such as pencil pen shape, watercolor pen shape, etc., multiple layers will be superimposed, resulting in darker colors. Display problems during switching will affect user use. Optionally, layer transparency can be understood as the transparency of the layer is less than the transparency threshold. Optionally, the transparency threshold can be 100%, that is, if the transparency of the layer is between 0-100%, it is considered transparent.

[0102] In other scenarios, the electronic device includes a small layer 1, and the size of the small layer 1 is consistent with the size of the handwriting input area. When the electronic device receives a drag operation to adjust the size of the handwriting area, such as receiving a drag operation on the upper edge or the lower edge of the handwriting area, the size of the small layer 1 also changes accordingly. If the small layer 1 carries handwriting input, in order to reduce the content jump that occurs after the small layer 1 is dragged along the edge, a guide layer is covered on the small layer 1. If the guide layer does not carry any content, the guide layer will follow the edge drag operation. Since the guide layer does not carry any content, the guide will not have content jumps. Then, the handwriting input carried by the small layer 1 is copied to the guide layer. At this time, the guide layer with the copied content can be used as the small layer 2, and the original small layer 1 (also called the old handwriting layer) can be deleted. Subsequently, the small layer 2 (also called the new handwriting layer) is used to carry the handwriting input.

[0103] Generally speaking, both small layer 1 and the guide layer are transparent. However, after copying the handwriting input carried by small layer 1 to the guide layer and before deleting the original small layer 1, if the handwriting input is transparent, such as pencil shape, watercolor pen shape, etc., multiple layers will be superimposed, causing the color to darken. The display problem during switching will affect user use.

[0104] It can be seen that in different scenarios, there are multiple transparent layers superimposed on each other. If the handwriting input is content with transparent attributes, there will be problems with inaccurate display of the handwriting input, such as the handwriting input color being darkened, affecting user use.

[0105] In view of this, an embodiment of the present application provides a method and device for processing handwriting input, which reduces the problem of darkening of handwriting input color caused by the superposition of multiple transparent layers by setting a blocking layer between two adjacent transparent layers, thereby improving the accuracy of handwriting input display.

[0106] In order to better understand the embodiments of the present application, the structure of the electronic device according to the embodiments of the present application is introduced below.

[0107] Figure 1 A schematic diagram of the hardware structure of the electronic device 100 is shown.

[0108] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0109] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0110] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0111] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0112] In the embodiment of the present application, the display screen 194 can receive handwriting input and display handwriting input, etc. The touch sensor 180K can be used to receive click operations and collect the trajectory of handwriting input, etc. The pressure sensor 180A can detect the pressure acting on the display screen 194, so as to determine whether it is handwriting input by using the size of the pressure, for example, it is handwriting input when the pressure is large. Exemplarily, assuming that the pressure detected is a first pressure value, it is considered to be wiping the screen, and the pressure detected is a second pressure value, it is considered to be handwriting input, wherein the first pressure value is less than the second pressure value.

[0113] Figure 2 A schematic diagram of the software structure of the electronic device 100 is shown.

[0114] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present invention application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0115] Figure 21 is a software structure diagram of the electronic device 100 of the embodiment of the present invention. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some application embodiments, the Android system is divided into multiple layers, from top to bottom, respectively, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.

[0116] The application layer can include a series of application packages.

[0117] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, wireless local area network (WLAN), Bluetooth, music, video, short message, note, web view, edit web fragment, new hand write manager, handwriting interface (ihand write). If the note is a third-party note application, it can interact with the handwriting manager through the handwriting interface.

[0118] In note-taking applications, web views may be used to display note content, especially when the note content contains complex layouts, pictures, or requires online content support. Complex interface effects can be achieved through web views.

[0119] The edit web fragment is used to implement editing functions in the web view, especially editing handwritten notes. The edit web fragment encapsulates the components that manage the web view. It provides specific interfaces or methods and also contains some logic for processing handwriting input, such as recognizing handwritten text and converting it to text format.

[0120] Among them, the handwriting manager is the component responsible for managing handwriting input. It is responsible for handling all operations related to handwriting, such as recognition, saving, editing, etc. The handwriting manager interacts with the edit web fragment and other related components. When the user enters handwriting, the handwriting manager captures the input and converts the handwriting input into an editable text format through recognition algorithms or other services. Then, it can pass the text to the edit web fragment for display or further editing. In addition, the handwriting manager may also provide some other functions, such as eraser, undo / redo, etc.

[0121] Among them, ihandwrite is an interface that defines the relevant methods and properties of handwriting input processing. Newhandwrite manager and other components that need to use the handwriting function will interact with the specific handwriting processing implementation through the ihandwrite interface. This means that if a class implements the ihandwrite interface, it can be used as a handwriting processing component. In the embodiment of the present application, ihandwrite can be used as a calling interface for a third-party note-taking application.

[0122] In general, the web view is responsible for displaying the note content, the edit web fragment provides editing functions, the newhand write manager manages handwriting input and processing, and the ihand write interface defines the methods and properties related to handwriting processing. These components and interfaces work together to implement functions such as creating, editing, and displaying handwritten notes.

[0123] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0124] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an input manager service, and a window manager service.

[0125] Among them, the input manager service is responsible for managing input devices, such as touch screens, keyboards, mice, etc. It enables input events (such as touch events, key events, etc.) to be correctly received and processed by various applications in the system, and is also responsible for handling configurations and policies related to input devices.

[0126] The window manager service is responsible for managing all windows and views in the system. It enables each application's window to be displayed correctly on the screen and handles various window-related events, such as window creation, destruction, movement, and resizing. The window manager service also works closely with other system services (such as the rendering engine) to enable the content on the screen to be updated and displayed efficiently and smoothly.

[0127] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0128] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0129] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0130] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), input distributor (input flinger), graphics synthesizer (surface flinger), and open graphics library for embedded systems (OpenGL for embedded systems).

[0131] Among them, input flinger is responsible for passing input events to the corresponding window or application. When inputmanager service determines that the input event should be passed to an application or window, it transmits the event to inputflinger. Input flinger will pass the input event to the correct window or application based on the current window layout and focus information. When there are multiple handwriting input events (handwriting input for short), input flinger can synthesize the events and pass them to the corresponding window or application.

[0132] In handwritten notes, the input flinger ensures that the stylus input events distributed by the input manager service can be accurately delivered to the handwritten note application. In this way, the note application can process and display the user's writing actions accordingly.

[0133] The surface flinger is responsible for compositing the contents of multiple applications or windows into a final image and displaying it on the screen. The surface flinger receives drawing requests from various applications or windows and, based on the layout, size, position and other information of the windows, combines the contents into a final image. It then displays the image on the screen.

[0134] In handwritten notes, when the user writes, the handwritten note application will draw its content (including handwriting, background, etc.) onto a surface and transmit it to the surface flinger for synthesis. The surface flinger will synthesize the content of the handwritten note application with the content of other applications or windows into a final image and display it on the screen, so that users can see the content of their handwritten notes.

[0135] Among them, OpenGL is an efficient graphics rendering library that supports complex graphics, image rendering, and various special effects and animations.

[0136] The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers and input device drivers. Input device drivers can include sensor drivers. For example, the camera driver controls the sensor to collect the handwriting input trajectory.

[0137] Optionally, in an embodiment of the present application, a handwriting canvas is implemented through Android's native View, and a rich text (text, pictures, etc.) input layer is implemented using webview.

[0138] The following is an exemplary description of the workflow of electronic device software.

[0139] For example, when dragging the handwriting canvas (also known as the handwriting layer), the input device driver transmits the events obtained by the input device to the input flinger, and the input flinger synthesizes the events and transmits them to the input manager service. The input manager service then transmits handwriting-related events, such as click events (touch events), to the window manager service. The window manager service then transmits the click event to the web view, which obtains the click event (touch event) and informs the edit web fragment. The edit web fragment learns whether the click event corresponds to the drag control that drags the line below the canvas or the drag control that drags the line above the canvas. The edit web fragment then creates a drag layer (also known as a mobile layer or a guide layer) and a temporary layer, and instructs the hand write manager to update the canvas. When the drag layer and the temporary layer (also known as a temporary occlusion layer, or simply the occlusion layer) are created, the hand write manager copies the content of the handwriting layer to the drag layer and deletes (remove) the old handwriting layer, using the drag layer as the new handwriting layer.

[0140] In addition, the edit web fragment tells the window manager service to create a drag layer and a temporary layer, and the hand write manager tells the window manager service to copy the contents of the handwriting layer to the drag layer. The window manager service then instructs the surface flinger to perform layer blending and use OpenGL to display it, and then the display driver controls the display for display.

[0141] Among them, a drag event can be divided into a down event, a move event and an up event. Among them, the down event, the move event and the up event are usually used to describe the process of pressing, moving and releasing an object on an interface element. Optionally, the down event in the embodiment of the present application may refer to an event acting on the drag control, the move event may refer to a moving event for adjusting the size, and the up event may be an event for completing the size adjustment.

[0142] The handwriting input scenarios provided by this application are described in detail below with reference to some exemplary interface diagrams.

[0143] It is understandable that the terms "interface" and "user interface" in the embodiments of the present application are media interfaces for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be an interface element such as an icon, window, button, etc. displayed on the display screen of an electronic device, where a button can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.

[0144] Through the analysis of the above application embodiments, it can be seen that when switching the handwriting input area or adjusting the size of the handwriting area, layer overlap will occur, resulting in inaccurate display. Therefore, the following application embodiments provide examples for display anomalies caused by several situations.

[0145] First, let's take the switching of the handwriting input area as an example ( Figure 3-Figure 4 ).

[0146] like Figure 3The interface shown in (a) includes the title of the note, the time of recording the note, the input content 1 of the note, the input content 2 of the note, and the handwriting control. The handwriting control may include a "keyboard input" control, a "pen type selection" control, a "handwriting selection" control, and a "more" control.

[0147] Among them, the "Keyboard Input" control can be used to input content using the keyboard. The "Pen Type Selection" control can select the pen type for handwriting input, including but not limited to ballpoint pens, fountain pens, pencils, markers, watercolor pens and other pen types. The "Handwriting Selection" control can be used to select the shape and color of the handwriting input. Among them, the shape of the handwriting may include but is not limited to solid or hollow. The color of the handwriting may include but is not limited to green, yellow, black, red, blue and a mixture of the above colors, etc., which is not limited here. The "More" control is used to provide pen types that are not displayed in the current "Pen Type Selection" control or to provide the shape and color of the handwriting that are not displayed in the current "Handwriting Selection" control, etc., which is not limited here.

[0148] Among them, information such as the title of the note, the recording time of the note, the input content 1 of the note, and the input content 2 of the note can be carried in the rich text layer 302. The rich text layer 302 can place element information such as text and handwriting placeholders. The rich text layer 302 includes area 1 and area 2, and area 1 and area 2 respectively carry handwriting input. Optionally, the rich text layer 302 of the embodiment of the present application can be set in the form of a web view.

[0149] It should be noted that the rich text layer 302 and the handwriting layer may use two sets of layer groups, for example, the rich text layer 302 uses the first set of layer groups, and the handwriting layer uses the second set of layer groups, and there is no association between the two layer groups.

[0150] It should be understood that the handwriting input 1 carried by area 1 may be obtained by handwriting input acting on area 1, such as the numbers "1234", and the handwriting input 2 carried by area 2 may be obtained by handwriting input acting on area 2. Optionally, the input content 1 may be obtained through a "keyboard input" control, in other words, the input content 1 may be obtained in a manner other than handwriting input.

[0151] like Figure 3 As shown in (a) of FIG. 1 , area 2 is receiving handwriting input, and a second handwriting layer 304 is set in area 2. The second handwriting layer 304 is used to carry and display the handwriting input in area 2. For example, the second handwriting layer 304 carries the handwritten input "12346" and other numbers. Optionally, the second handwriting layer 304 can cover area 2.

[0152] It should be understood that the content displayed in the second handwriting layer 304 is related to the actual handwriting input, and is not limited to numbers, but can also be text or patterns, etc., which are not limited here. In addition, the content displayed in the second handwriting layer 304 can be the prototype of the handwriting input, or can be obtained after a certain processing of the prototype of the handwriting input, which is not limited here.

[0153] like Figure 3 As shown in (b) of FIG. 1 , when handwriting input is started in area 1, for example, when a partial stroke of the number "5" is input, the electronic device can detect a click operation on area 1. At this time, the electronic device further includes a switching layer 306. Figure 3 In (a), the switching layer 306 is in a hidden state. Figure 3 The switching layer shown in (b) is in a visible state. When handwriting input is required in area 1, the user can directly input handwriting in area 1. When the rich text layer 302 receives handwriting input, the switching layer 306 is pulled up. The switching layer 306 can cover area 1 and area 2, so as to flexibly switch the handwriting input between area 1 and area 2.

[0154] It should be noted that the switching layer 306 may be created after the note application is opened, and deleted after the note application is closed, that is, the switching layer 306 always exists during the time period between opening the note application and closing the note application, but it may switch between a hidden state and a visible state. The hidden state can also be understood as an invisible state, that is, even if the switching layer 306 carries content, it cannot be displayed through the display screen of the electronic device, and the switching layer 306 does not have the ability to receive handwriting input; while in the visible state, when the switching layer 306 carries content, it can be displayed through the display screen of the electronic device, and it has the ability to receive handwriting input. Optionally, when the switching layer 306 enters the hidden state, the content carried by the switching layer 306 may also be deleted.

[0155] It should be understood that when the switching layer 306 is in a visible state, the switching layer 306 can be used to carry the handwriting input, and the first handwriting layer 308 can be created synchronously. However, the time required to create the first handwriting layer 308 may be longer than the time required to switch the switching layer 306 from a hidden state to a visible state. Therefore, before the first handwriting layer 308 is created, the switching layer 306 can be used to carry the handwriting input. In this way, the information lost during the handwriting input can be reduced, the integrity of the handwriting input can be improved, and the user experience can be improved.

[0156] In the embodiment of the present application, area 1 and area 2 include areas where handwriting input can be performed. Exemplarily, area 1 may include an area between "input content 1" and "input content 2". Area 2 may include an area adjacent to "input content 2" and different from area 1.

[0157] Then, if Figure 3 As shown in (c) in FIG. 3 , when the first handwriting layer 308 is created, the handwriting input carried by the switching layer 306 can be copied to the first handwriting layer 308. At this time, the switching layer 306 is still in a visible state. When the handwriting input carried by the switching layer 306 is copied to the first handwriting layer 308, a first shielding layer 310 can be generated. The first shielding layer 310 is located between the switching layer 306 and the first handwriting layer 308. The first shielding layer 310 can be used to shield the handwriting input copied to the first handwriting layer 308, such as the number "5".

[0158] It should be noted that the handwriting input received by the switching layer 306 can be written into the message queue, and then the handwriting input in the message queue is copied to the first handwriting layer 308. For example, Figure 4 As shown, the switching layer 306 is used to receive a part of the input events of the handwriting input, and then the input events are written into the message queue. Then, after the handwriting canvas is created, the input events are copied into the handwriting canvas, and the handwriting canvas is used to carry the user's subsequent handwriting input. Exemplarily, for example, the switching layer 306 can be used to carry the first input of "5", and then the generated first handwriting layer 308 is used to carry the second input of "5", and then the first input of "5" carried by the switching layer 306 is copied to the first handwriting layer 308, so that the first handwriting layer 308 can carry the complete input of "5", so that the complete number "5" can be displayed, and the first shielding layer 310 can shield the first input of "5". Optionally, the switching layer 306 can also be used to carry a complete handwriting input, such as the complete number "5", and then the number "5" is copied to the first handwriting layer 308, and then the first shielding layer 310 shields the complete number "5".

[0159] In the embodiment of the present application, the first shielding layer 310 may be created before or after the first handwriting layer 308 is created. Optionally, the switching layer 306 , the first shielding layer 310 , and the first handwriting layer 308 are all above the rich text layer 302 .

[0160] It should be understood that the first shielding layer 310 is located between the switching layer 306 and the created first handwriting layer 308, so that the first shielding layer 310 can play a shielding role between the switching layer 306 and the first handwriting layer 308, so that the inaccurate display caused by the superposition between the switching layer 306 and the first handwriting layer 308 can be reduced, thereby improving the display accuracy of the carried handwriting input. Optionally, in order to improve the shielding effect, the first shielding layer 310 can cover the first handwriting layer 308, or cover the area in the switching layer 306 that carries the handwriting input, which is not limited here.

[0161] It should be understood that by covering the area carrying the handwriting input in the switching layer 306 , the area of ​​the first occlusion layer 310 can be reduced, and by covering the first handwriting layer 308 , the computing resources required to generate the first occlusion layer 310 can be reduced.

[0162] In the embodiment of the present application, optionally, the first shielding layer 310 is non-transparent, for example, the transparency of the first shielding layer 310 is 0%. In addition, the first shielding layer 310 includes the background in the rich text layer 302, so that since the background of the first shielding layer 310 is consistent with the background of the rich text layer 302, the existence of the first shielding layer 310 cannot be perceived visually, thereby improving the user experience. Optionally, the background of the first shielding layer 310 is consistent with the background of the rich text layer 302, and the background color of the first shielding layer 310 may be consistent with the background color of the rich text layer 302.

[0163] It should be noted that if the switching layer 306 is above the first handwriting layer 308 and area 1 has content, the switching layer 306 can be set to carry empty content before handwriting input. At this time, the first obstructing layer 310 can also include the content of the rich text layer 302, that is, the first obstructing layer 310 includes the content of the area of ​​the rich text layer 302 it covers; if the switching layer 306 is set to carry the content of area 1 of the rich text layer, the first obstructing layer 310 may not include the content of the rich text layer 302.

[0164] Optionally, if the first shielding layer 310 is created after the switching layer 306 is created, the first shielding layer 310 may be created before the handwriting input is copied to the first handwriting layer 308, so that the shielding effect between the switching layer 306 and the first handwriting layer 308 can be realized in time. In the embodiment of the present application, there is no restriction on the timing of creating the first shielding layer 310, as long as the first shielding layer 310 can play a shielding role between the switching layer 306 and the first handwriting layer 308 when the switching layer 306 and the first handwriting layer 308 carry the same content, and there is no restriction here.

[0165] It should be understood that the first shielding layer 310 may cover the first handwriting layer 308 , and the switching layer 306 may cover the first shielding layer 310 .

[0166] It should be noted that layer A covers layer B, which can also be understood as layer A is longer than layer B, and layer A is wider than layer B. If layer A is located above layer B and layer A is opaque, the user cannot see the content of layer B through layer A.

[0167] In a possible implementation, the switching layer 306 is located above the first handwriting layer 308. In the embodiment of the present application, when the switching layer 306 is located above the first handwriting layer 308, the first shielding layer 310 is also located above the first handwriting layer 308. At this time, the first shielding layer 310 can shield the first handwriting layer 308. Regardless of when the handwriting input carried by the switching layer 306 is copied to the first handwriting layer 308, the switching layer 306 and the first handwriting layer 308 are generally not displayed in an overlapping manner. In this way, the flexibility of copying the handwriting input carried by the switching layer 306 to the first handwriting layer 308 can be improved.

[0168] In another possible implementation, the switching layer 306 is located below the first handwriting layer 308. In the embodiment of the present application, when the switching layer 306 is located below the first handwriting layer 308, after the first handwriting layer 308 is created, the first handwriting layer 308 can be used to continue to carry the handwriting input, so that the amount of data required to copy the handwriting input carried by the switching layer 306 to the first handwriting layer 308 can be reduced, thereby reducing data transmission resources.

[0169] It should be noted that "up" and "down" are relative concepts. In the embodiments of the present application, the up-and-down relationship between layers can be understood as the distance relationship from the surface of the display screen, where the surface of the display screen can be a surface that can be touched by the user. For example, assuming that layer A is above layer B, the distance between layer A and the surface of the display screen is less than the distance between layer B and the surface of the display screen. In addition, the up-and-down relationship can also be understood as the distance relationship from the rich text layer, using the rich text layer as a reference. For example, assuming that layer A is above layer B, the distance between layer A and the rich text layer is greater than the distance between layer B and the rich text layer.

[0170] Then, after the handwriting input carried by the switching layer 306 is copied to the first handwriting layer 308, as shown in FIG. Figure 3 As shown in (d) in FIG. 1 , the switching layer 306 is set to a hidden state, and the first handwriting layer 308 is used to continue to carry the handwriting input. Optionally, the first handwriting layer 308 covers area 1.

[0171] Optionally, after creating the first handwriting layer 308, the content carried by the second handwriting layer 304 can be inserted into the rich text layer 302 at the same position in the form of an image, and then the second handwriting layer 304 is deleted. This not only retains the content carried by the second handwriting layer 304, but also releases layer resources.

[0172] It should be understood that the second handwriting layer 304 can be deleted after a handwriting input event acting on area 1 is detected, or it can be deleted after the switching layer 306 is set to a visible state, after the first handwriting layer 308 is created, and after the content carried by the switching layer 306 is copied to the first handwriting layer 308, without limitation herein. Optionally, a handwriting input event may include a down event, a move event, and an up event. In an embodiment of the present application, the down event may be a click event acting on the rich text layer 302 during handwriting input, the move event may be a handwriting input event after the down event, and the up event may refer to an event indicating the end of handwriting input. In general, when the user needs to input handwriting in area 1, the second handwriting layer 304 can be deleted.

[0173] In the related art, generally speaking, the user needs to click the area where the handwriting input is required first, and when the electronic device receives the click event, it generates a handwriting layer and uses the handwriting layer to receive the handwriting input. However, in this way, the user needs to click first before the handwriting input can be performed.

[0174] In the embodiment of the present application, the switching layer 306 is used to carry the first part of the handwriting input, and then the first part of the handwriting input is copied from the switching layer 306 to the handwriting layer, and the handwriting layer is used to continue to carry the second part of the handwriting input. In this way, the integrity of the carried handwriting input can be improved, and the user can also directly perform handwriting input in the target area without having to click first and then perform handwriting input, which can improve the convenience of the user's handwriting input.

[0175] In a possible implementation, when switching the handwriting input area, before using the created handwriting layer (also called handwriting canvas) to carry the handwriting input, the rich text layer 302 and the switching layer 306 can be used to receive different parts of the handwriting input respectively. The handwriting canvas is used to carry the handwriting view.

[0176] In the embodiment of the present application, since the area where the handwriting input acts is an area where no handwriting layer is set when switching, the first input event of the handwriting input acts on the rich text layer 302, that is, the switching layer 306 can be used to receive the first input event of the handwriting input, and then, when the handwriting canvas is established, the handwriting canvas is used to carry the second input event of the handwriting input, and the first input event is copied to the handwriting canvas. In this way, the handwriting canvas can include the first input event and the second input event of the handwriting input, and can carry a more complete handwriting input.

[0177] Optionally, when it is necessary to switch to area 2 for handwriting input again, the user can directly perform handwriting input in area 2. When the rich text layer 302 receives the handwriting input, the switching layer 306 will be pulled up. At this time, the switching layer 306 is in a visible state, and the switching layer 306 can be used to carry the handwriting input, and the second handwriting layer 304 can be recreated synchronously. Then, the second handwriting layer 304 is created, and a first shielding layer 310 is also set between the second handwriting layer 304 and the switching layer 306. Then, the handwriting input carried by the first handwriting layer 308, such as "12345", is inserted into the rich text layer 302 in the form of an image, and the first handwriting layer 308 is deleted, and the handwriting input carried by the switching layer 306 is copied to the second handwriting layer 304. Then, the second handwriting layer 304 can continue to carry the handwriting input.

[0178] The second handwriting layer 304 may refer to the related description of the first handwriting layer 308 , which will not be described in detail here.

[0179] It should be noted that in the embodiment of the present application, it is possible to first detect whether transparent handwriting is input. If so, an occlusion layer is created. If not, an occlusion layer may not be created. In this way, the resources required to create an occlusion layer can be reduced. Optionally, it is possible to determine whether transparent handwriting is input by a selection operation acting on a "pen type selection" control. For example, if a target pen type such as a pencil pen type or a watercolor pen type for inputting transparent handwriting is selected, it is considered that transparent handwriting needs to be input.

[0180] Optionally, in this embodiment, the first handwriting layer 308, the second handwriting layer 304 and the switching layer 306 can be transparent layers, while the rich text layer 302 and the shielding layer are non-transparent layers. The first handwriting layer 308 and the second handwriting layer 304 are smaller than the switching layer 306, so the first handwriting layer 308 and the second handwriting layer 304 can be considered as small layers, and the switching layer 306 can be considered as a large layer.

[0181] Next, let’s take the size adjustment of the handwriting layer as an example to explain ( Figure 5 ).

[0182] like Figure 5The interface shown in (a) includes a rich text layer 302 and a first handwriting layer 308. The size of the handwriting area 3 can be adjusted, for example, by expanding the handwriting area 3 or reducing the handwriting area 3. The handwriting input area can be, for example, the area between "Content 1" and "Content 2". Optionally, the first handwriting layer 308 carries handwriting input, such as handwriting input of "12345". Optionally, the first handwriting layer 308 can include an upper edge and a lower edge, and the upper edge and the lower edge can be used as drag controls respectively, for example, the upper edge is used as a first drag control, and the lower edge is used as a second drag control, which is not limited here.

[0183] Then, if Figure 5 As shown in (b), when the user needs to adjust the size of the handwriting input area, it can be achieved by dragging the handwriting input area. When the user drags the handwriting input, the electronic device can detect the drag direction and drag distance of the drag operation, and then generate a moving layer 312, and control the size of the moving layer 312 to change with the change of the drag operation. The moving layer 312 does not carry any content, that is, the moving layer 312 can be a blank transparent layer.

[0184] Then, if Figure 5 As shown in (c) in FIG. 3 , when the dragging operation is completed, the adjustment of the moving layer 312 also stops. At this time, although the coordinates of the area in the moving layer 312 have changed, since the content carried by the moving layer 312 is empty, after the dragging operation is completed, the moving layer 312 will not have content jumps or screen flashes.

[0185] Then, after the handwriting input carried by the first handwriting layer 308 is copied to the same position of the mobile layer 312, a second shielding layer 314 can be generated to shield the copied content.

[0186] Then, if Figure 5 As shown in (d) in FIG. 1 , the first handwriting layer 308 can be deleted, and the mobile layer 312 with the handwriting input copied from the first handwriting layer 308 can be used as a new handwriting layer. In this way, the handwriting input area can be enlarged, but the content jump or screen flicker caused by adjusting the size of the handwriting input area will not occur.

[0187] It should be understood that if the size of the new handwriting layer needs to be adjusted, a new mobile layer is required.

[0188] It should be noted that when the handwriting input carried by the first handwriting layer 308 is copied to the mobile layer 312, there are some moments when the content of the first handwriting layer 308 overlaps with the handwriting input carried by the mobile layer 312. In this way, the same content between the layers may be superimposed, which may cause inaccurate display. Therefore, in the embodiment of the present application, a second shielding layer 314 may be set between the first handwriting layer 308 and the mobile layer 312 for shielding, so that inaccurate display can be reduced.

[0189] Optionally, the second shielding layer 314 may cover the first handwriting layer 308, or may cover the area in the first handwriting layer 308 where content is displayed, which is not limited here. The second shielding layer 314 may refer to the relevant description of the first shielding layer 310, which is not repeated here. Optionally, the mobile layer 312 and the first handwriting layer 308 in this embodiment may be transparent layers.

[0190] In a possible implementation, the first handwriting layer 308 is below the moving layer 312 .

[0191] In another possible implementation, the first handwriting layer 308 is above the mobile layer 312. Thus, before the handwriting input carried by the first handwriting layer 308 is copied to the mobile layer 312, the second blocking layer 314 can be used to block between the first handwriting layer 308 and the mobile layer 312. Thus, no matter when the handwriting input carried by the first handwriting layer 308 is copied to the mobile layer 312, the same content between the layers will not be superimposed, thereby improving the flexibility of content copying between layers.

[0192] Optionally, the second shielding layer 314 includes the background of the rich text layer. If the mobile layer 312 is below the first handwriting layer 308 and the handwriting input area (abbreviated as handwriting area or area) has content, the second shielding layer 314 can also include the content of the handwriting input area, that is, the second shielding layer 314 includes the content of the area of ​​the rich text layer 302 it covers.

[0193] It should be noted that in the embodiment of the present application, it is possible to first identify whether the handwriting input carried by the handwriting layer is transparent handwriting input. If so, an occlusion layer is created. If not, an occlusion layer may not be created. In this way, the resources required to create an occlusion layer can be reduced.

[0194] The following application embodiment is used to illustrate how to improve the smoothness of dragging ( Figure 6 ).

[0195] In some cases of the example, the user generally clicks on the handwriting input area 4 (for example, area 4) in the rich text layer 302. When the electronic device detects the click operation on area 4, it pulls up the handwriting layer. Then, when the user starts the drag operation on area 4, the electronic device detects the drag event, consumes the drag event using the handwriting layer on the Android side, and then determines the position change of the handwriting layer, and adjusts the size of the handwriting layer, and then feeds back the position change information to the rich text layer 302 on the JAVA script (javascript, JS) side, and the rich text layer 302 adjusts the content of the rich text layer 302 accordingly based on the position change information, etc. For example, when adjusting the lower edge of the handwriting layer, the handwriting layer consumes the drag event, determines the position change information of the lower edge of the handwriting layer, and then the rich text layer 302 adjusts the input content 2 of the rich text layer 302 accordingly based on the position change information.

[0196] However, it takes a certain amount of time for the position change information to be transmitted from the Android side to the JS side. Therefore, the position adjustment of the content of the rich text layer 302 is delayed relative to the size adjustment of the handwriting layer. That is, during the drag event of the handwriting layer, the dragging follow-up performance of the content of the rich text layer 302 is poor, that is, the hand-tracking performance of the content of the rich text layer 302 is insufficient, which affects the user experience.

[0197] It should be understood that the above embodiments only provide exemplary situations where multiple layers are superimposed. As long as there are multiple layers superimposed, a blocking layer can be set between layers carrying the same content, not limited to the scenarios mentioned in this embodiment.

[0198] In view of this, the following describes how to improve the smoothness of dragging.

[0199] like Figure 6 As shown in (a), the handwriting input area 4 in the rich text layer 302 can be inserted with an image of the handwriting input carried by the handwriting layer, such as an image of the number string "1234". The image of the number string "1234" can be a placeholder 316. The placeholder 316 is located in the rich text layer 302. Optionally, a space of 8 density-independent pixels (dp) is reserved above and below the placeholder 316, and the space is used to place a draggable handwriting canvas control. Such a design is usually intended to allow users to view or operate image content that exceeds the visible area of ​​the canvas by dragging. Exemplarily, the size of the placeholder 316 can be between the size of "Content 1" of the rich text layer 302 and the size of "Content 2" of the rich text layer 302.

[0200] When the user clicks the handwriting input area 4, that is, when the electronic device detects the click operation on the handwriting input area 4, as shown in FIG. Figure 6As shown in (b), the first drag control 318 and the second drag control 320 are displayed, and the handwriting layer is pulled up synchronously. Among them, the first drag control 318 and the second drag control 320 of the embodiment of the present application can be set in the rich text layer 302 to adjust the size of the handwriting input area 4, which can also be understood as being used to adjust the size of the placeholder image 316. In this embodiment, clicking on the drag hot zone triggers the drag mode, and the drag event can be transparently transmitted to the rich text layer 302, thereby consuming the event.

[0201] Then, if Figure 6 As shown in (c), the user performs a drag operation on the second drag control 320, and the electronic device receives the drag event on the second drag control 320, and then consumes the drag event through the rich text layer 302, and then determines the position change indicated by the drag event, thereby adjusting the size of the placeholder 316. During the dragging process of the second drag control 320, the position of "Content 2" of the rich text layer 302 also changes with the size change of the placeholder 316.

[0202] Then, if Figure 6 As shown in (d) in FIG. 3 , after the dragging operation is completed, the size of the placeholder image 316 is also adjusted. Figure 6 As shown in (e) in FIG. 1 , the size of the pulled-up third handwriting layer 322 is updated based on the change callback of the placeholder image 316 .

[0203] In general, the rich text layer 302 is utilized to consume drag events, thereby determining the direction and distance of adjusting the area size, so as to adjust the placeholder image 316, and the position change information of the content of the rich text layer 302 can be obtained based on the drag event, so as to adjust the position of the content of the rich text layer 302. Since the time required for information to be transmitted to the rich text layer 302 is reduced, the position adjustment delay of the content of the rich text layer 302 can be reduced, thereby improving the dragging followability of the content of the rich text layer 302, that is, improving the hand tracking of the content of the rich text layer 302.

[0204] In general, the handwriting canvas and rich text layer 302 do not consume click events. A placeholder 316 of the same size as the canvas is placed in the rich text canvas creation area. When the click event is transmitted to the drag control of the placeholder 316, it will be consumed and the size of the placeholder 316 will change following the user's drag event. Then, after the up event, the call back will be made to update the size of the handwriting canvas, ensuring smooth data updates in the web view and solving the problem of canvas dragging and chirality.

[0205] It should be noted that if the third handwriting layer 322 has been created and the third handwriting layer 322 carries handwriting input before receiving the drag event, a mobile layer can be generated after the drag event ends, and then the handwriting input carried by the third handwriting layer 322 can be copied to the mobile layer. This part can refer to the relevant description of the first handwriting layer and the mobile layer in the above embodiment, and will not be repeated here. If the third handwriting layer 322 has been created and the content carried by the third handwriting layer 322 is empty before receiving the drag event, the size of the third handwriting layer 322 is adjusted after the drag event ends. If the third handwriting layer 322 has not been created before receiving the drag event, the third handwriting layer 322 is created after the drag event ends. Optionally, the third handwriting layer 322 and the first handwriting layer 308 can be the same layer.

[0206] Optionally, the third handwriting layer 322 and the moving layer may be shielded by an shielding layer. The contents of this part may refer to the description of the above application embodiment and will not be elaborated here.

[0207] The specific implementation of the aforementioned application embodiment is described below.

[0208] First, the specific implementation of switching the handwriting input area is described.

[0209] See also Figure 7 , Figure 7 A flow chart of a handwriting input processing method provided in an embodiment of the present application. Figure 7 The methods shown may include:

[0210] S701. The web page fragment editor loads note information, where the note information includes location information and identification information of each area.

[0211] The note information may be loaded when a click operation on a note is detected. For example, the interface of the note application includes note selection controls, such as "Note 1" and "Note 2" selection controls. When a click operation on "Note 1" is detected, the note information of Note 1 is loaded; when a click operation on "Note 2" is detected, the note information of Note 2 is loaded.

[0212] In an embodiment of the present application, an image may be inserted into a region. The image of this embodiment may be an image converted from the handwriting input carried by the handwriting layer. The position information may indicate the position of the region in the web page view, such as the xy value of the center point of the region, and information such as the size of the region. The identification information of the region may identify the identity of the region, and the identification information of the region may be, for example, identity (ID) information such as 0, 1, or 2. Taking the display screen as a reference plane, the X-axis may be an axis parallel to a first direction of the display screen, and the Y-axis may be an axis parallel to a second direction of the display screen, the first direction is perpendicular to the second direction, and the length of the electronic device along the first direction is less than the length of the electronic device along the second direction.

[0213] It should be noted that the area in this embodiment does not refer to a specific area. For example, the area in this embodiment can be Figure 3 The area "1234" in area 1 or the area "12346" in area 2 is shown. Optionally, the area may be one or more, which is not limited here.

[0214] S702: The web page fragment editor transmits the location information and identification information of each area to the handwriting manager.

[0215] S703: Generate a mapping relationship, where the mapping relationship represents the relationship between the location information and the identification information of each area.

[0216] S704: The webpage fragment editor transmits an instruction to generate a switching layer to the handwriting manager.

[0217] S705: The handwriting manager generates a switching layer and sets the switching layer to a hidden state.

[0218] Exemplarily, the switching layer of the embodiment of the present application may be, for example, Figure 3 The switching layer 306 is shown. In this step, the switching layer is generated and set to a hidden state.

[0219] It should be noted that the switching layer can be created when the note or note application is opened and deleted when the note or note application is exited; it can also be generated when the user needs to handwrite in different handwriting input areas, and there is no limitation here.

[0220] S706: The web page view obtains a handwriting input event acting on area 1, and writes the obtained handwriting input into a message queue.

[0221] In the embodiment of the present application, area 1 may be, for example, Figure 3 In the "1234" area in area 1 shown, the handwriting input event may be, for example, Figure 3 The handwriting input event shown acts on the "1234" area.

[0222] S707: The web page view transmits the action location of the handwriting input event to the web page fragment editor.

[0223] S708: The webpage fragment editor transmits identification information of the affected area 1 to the handwriting manager based on the affected position of the handwriting input event.

[0224] In the embodiment of the present application, since the webpage fragment editor obtains the position information of each area and the identification information of each area when loading the note information, the webpage fragment editor obtains the effective position of the handwriting input event, and can select the position information that matches the effective position of the handwriting input event from the position information of each area, thereby obtaining the representation information associated with the matching position information as the identification information of the effective area 1. Among them, the position information that matches the effective position of the handwriting input event can refer to the effective position of the handwriting input event being located within the position area indicated by the matching position information.

[0225] S709: The handwriting manager sets the switching layer to a visible state, and obtains the position information associated with the identification information of the affected area 1 based on the mapping relationship, so as to generate a handwriting layer and an occlusion layer at the position of the affected area 1.

[0226] Exemplarily, the handwriting layer of the embodiment of the present application may be, for example, Figure 3 The first handwriting layer 308 shown in the figure can refer to the description of the first handwriting layer 308 in the above embodiment, and will not be described here. The shielding layer can be, for example, Figure 4 The first shielding layer 310 shown in the embodiment of the present application can refer to the description of the first shielding layer 310 in the above embodiment, and will not be repeated here. In the embodiment of the present application, the switching layer is set to a visible state, so as to use the visible state of the switching layer to carry handwriting input. In addition, the shielding layer plays a shielding role between the handwriting layer and the switching layer, thereby reducing the display abnormality caused by the superposition of layer content.

[0227] In the embodiment of the present application, since the mapping relationship represents the relationship between the position information and the identification information, if the mapping relationship includes the identification information of the affected area 1, the position information of the affected area can be obtained accordingly, so that the handwriting layer and the occlusion layer are generated at the position of the affected area. Optionally, the size of the handwriting layer can cover the size of the area.

[0228] S710: The web page fragment editor writes the handwriting input event received by the switch layer in the visible state into a message queue.

[0229] S711. When the handwriting layer is generated, the web page fragment editor copies the handwriting input event in the message queue to the handwriting layer.

[0230] In this embodiment, optionally, the webpage fragment editor can copy the handwriting input event in the message queue to the handwriting layer when the handwriting input event ends. In addition, the handwriting input event can also be copied to the handwriting layer when there is a handwriting input event in the message queue, which is not limited here.

[0231] S712: The web page fragment editor determines whether the handwriting input event is copied.

[0232] In this embodiment, if yes, then execute S713, if no, then continue to wait.

[0233] S713: When the handwriting input event copying is completed, the webpage fragment editor transmits instructions to hide the switching layer and delete the blocking layer to the handwriting manager.

[0234] S714: The handwriting manager sets the hidden layer to a hidden state and deletes the occlusion layer based on the instructions to hide the switching layer and delete the occlusion layer.

[0235] S715 . The web page fragment editing instructs the web page view to update area 1 , and the updated area 1 adds an image of the handwriting input carried by the handwriting layer.

[0236] In the embodiment of the present application, the handwriting input carried by the handwriting layer can be updated to area 1 in the form of an image, so that the area of ​​area 1 is increased with the handwriting input carried by the handwriting layer, and the content carried by the handwriting layer is empty at this time.

[0237] It should be understood that by inserting the handwriting input carried by the handwriting into the area in the form of an image, the position of the handwriting input will not be confused when the size of the handwriting layer changes, which can improve the stability and accuracy of the position of the handwriting input.

[0238] Optionally, in this embodiment, the web page view can request the handwriting manager for an image of the handwriting input, and then the handwriting manager converts the handwriting input into an image and sends it to the web page view; in addition, the handwriting manager can send the content of the handwriting input and the location information of the content to the web page view, and the web page view converts it into an image based on the content of the handwriting input and the location information of the content. This embodiment does not limit how the Manyo view inserts the image into area 1.

[0239] S716. The web page fragment editor transmits the location information of area 1 and the identification information of area 1 to the handwriting manager.

[0240] S717: The handwriting manager updates the location information of area 1 and the identification information of area 1 in the mapping relationship.

[0241] In this embodiment, since area 1 is updated, the size of area 1 may change, so the location information of area 1 and the identification information of area 1 are updated to the mapping relationship, that is, the updated mapping relationship includes the location information of area 1 and the identification information of area 1.

[0242] It should be understood that if the web page view obtains a handwriting input event acting on area 2, for example, Figure 3 For the handwriting input event in the area 2 shown, reference may be made to the description of S706-S717 to implement the handwriting input in the area 2, which will not be described in detail here.

[0243] Optionally, when the handwriting layer in area 2 is generated, the handwriting layer in area 1 may be deleted, thereby releasing layer resources.

[0244] S718. The web page fragment editor obtains a note exit event.

[0245] S719: The web page fragment editor transmits an instruction to clear data to the handwriting manager.

[0246] S720: The handwriting manager deletes the mapping relationship based on the instruction to clear the data.

[0247] In another possible implementation, the switching layer may not be set to a hidden state, and accordingly, there is no need to switch the switching layer from a hidden state to a visible state. In this case, optionally, the switching layer may be created when it is predicted that the user needs to perform handwriting input in different handwriting input areas, and the switching layer may be deleted when it is predicted that the user does not need to perform handwriting input in different handwriting input areas.

[0248] It should be understood that by switching the switching layer between the hidden state and the visible state, it is possible to respond to handwriting input in different handwriting input areas in a timely manner, thereby improving the handwriting input efficiency.

[0249] In another possible implementation, S708 may be replaced by: the webpage fragment editor transmits the action position of the handwriting input event to the handwriting manager, so that the handwriting manager can directly determine the positions where the handwriting layer and the occlusion layer need to be generated based on the action position of the handwriting input event.

[0250] It should be understood that, generally speaking, the data volume of identification information is smaller than the data volume of location information, so by transmitting identification information, the transmission resources required for data transmission can be reduced.

[0251] In another possible implementation, S719 and S720 may not be required, but S719 and S720 can reduce the occupation of storage resources.

[0252] In another possible implementation, the message queues written in S706 and S710 may be different, for example, S706 writes to the first message queue and S710 writes to the second message queue, etc., which is not limited here. Optionally, other methods other than message queues may be used to copy handwriting input, which is not limited here.

[0253] In another possible implementation, S704 may be replaced by: generating a switching layer after generating a mapping relationship, and S704 regenerates the switching layer according to the instructions of the web page fragment editing, and the switching layer may be generated when needed, which can improve the utilization rate of layer resources.

[0254] In another possible implementation, S712-S714 can be replaced by: when the web page fragment editor starts to copy the handwriting input event, an instruction to hide the switching layer is transmitted to the handwriting manager, and the handwriting manager sets the hidden layer to a hidden state after a delay of a period of time. The delay time can be a preset time, or the time estimated by the handwriting manager to copy the handwriting input event.

[0255] It should be understood that the integrity of the handwriting input event replication can be improved through S712 - S714 .

[0256] It should be noted that the handwriting layer and the occlusion layer may be generated at the same time, or they may be generated one after the other, and this is not limited here. In one possible implementation, the handwriting layer may be generated first, and the handwriting layer is located above the switching layer. When the copying of the handwriting input ends, the occlusion layer is created, or when the copying of the handwriting input starts, the occlusion layer is created. The occlusion layer includes the background of the web page view and the content carried by the switching layer. Then, when the handwriting input ends, the occlusion layer is deleted. Optionally, the occlusion layer may be generated, and the occlusion layer is located below the switching layer, and this is not limited here.

[0257] It should be noted that the image of a region covers the region, for example, the image of region 1 covers region 1. Optionally, the location information of a region can be understood as the location information of an image, for example, the location information of region 1 can be understood as the location information of the image of region 1. Optionally, the size of the image of region 1 can also be consistent with the size and position of the layer used to carry the handwriting input of region 1, for example, the size and position of the image of region 1 are consistent with the size and position of the handwriting layer of region 1.

[0258] Next, the specific implementation of adjusting the size of the handwriting layer is described.

[0259] like Figure 8 As shown, Figure 8 A flowchart of another method for processing handwriting input provided in an embodiment of the present application is shown below. Figure 8 The methods shown may include:

[0260] S801, the web page fragment editor obtains the click operation acting on area 3.

[0261] Among them, area 3 may include an image of handwriting input, and the image of handwriting input may be, for example, Figure 6 The area "1234" in the handwriting input area is shown. Optionally, the handwriting input image can be understood as a placeholder image. In this embodiment, the click operation on area 3 can be understood as a click operation on the placeholder image.

[0262] S802: The webpage fragment editor transmits an instruction for generating a layer to the handwriting manager. The instruction for generating a layer includes location information of area 3.

[0263] The indication of generating a layer may be used to indicate the generation of a handwriting layer, a moving layer, and an occlusion layer. For example, the handwriting layer may be as follows: Figure 5 The first handwriting layer 308 shown, or Figure 6 The third handwriting layer 322 shown, the mobile layer can be as follows Figure 5 As shown in the moving layer 312, the shielding layer may be, for example, Figure 5 The second shielding layer 314 is shown. The handwritten letter, the moving layer and the shielding layer can refer to the description of the above embodiment, and will not be repeated here. The position information of area 3 can also be understood as the position information of the placeholder image.

[0264] S803 . The handwriting manager generates a handwriting layer, a moving layer, and an occlusion layer based on the position indicated by the position information of area 3 .

[0265] S804: The web page view obtains a drag event of area 3.

[0266] In the embodiment of the present application, the drag event may refer to an event in which the user adjusts the size of the handwriting layer by dragging. Figure 5 The drag event acting on the handwriting input area as shown, or Figure 6 The drag event acting on the second drag control 320 is shown, and is not limited here.

[0267] S805 : The webpage view adjusts the size of area 3 and the position of the content of the webpage view based on the drag event.

[0268] The content of the web page view may be, for example, Figure 6 "Content 2" is shown.

[0269] S806: The web page view transmits content position adjustment information to the handwriting manager.

[0270] The position adjustment information includes information such as the position adjustment direction and the position adjustment distance.

[0271] S807: The handwriting manager calls back to update the size of the mobile layer based on the position adjustment information of the content.

[0272] S808. When the size of the mobile layer is updated, the handwriting manager copies the handwriting input carried by the handwriting layer to the mobile layer, deletes the handwriting layer, and generates a new mobile layer.

[0273] In this embodiment, the mobile layer carrying the handwriting input can be used as a new handwriting layer, and the new mobile layer can be used as a mobile layer of the new handwriting layer.

[0274] In another possible implementation, S805-S807 may be replaced by: the web page view transmits a drag event to the handwriting manager, and the handwriting manager may adjust the size of the mobile layer based on the drag event.

[0275] It should be understood that S805-S807 can improve the hand-tracking performance of the content of the web page view when the size of the handwriting input area is adjusted.

[0276] In another possible implementation, the mobile layer may not be created, and S807 may be replaced by: the handwriting manager updates the size of the handwriting layer based on the content position adjustment information callback, and in S808, when the handwriting layer size update is completed, the handwriting manager copies the handwriting input carried by the handwriting layer to the mobile layer.

[0277] It should be understood that S807-S808 can improve the flickering situation when the handwriting layer is resized.

[0278] In another possible implementation, the moving layer and / or the blocking layer may not be generated.

[0279] It should be understood that if there is no content input by the virtual keyboard in the web page view, the position of the content of the web page view may not be adjusted in S805.

[0280] The following specific embodiments are used to describe the technical solutions of the present application in detail. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0281] The present application provides a handwriting input processing method, including:

[0282] A first handwriting input is received; the first layer is used to carry the content of the first handwriting input; in the process of using the first layer to receive the first handwriting input, a second layer is pulled up, the second layer is a layer for carrying the first handwriting input; the content of the first handwriting input received by the first layer is copied to the second layer, wherein in the process of copying the content of the first handwriting input received by the first layer to the second layer, a third layer is provided between the first layer and the second layer, the third layer is used to form an obstruction between the second layer and the area in the first layer receiving the first handwriting input; after completing the copying of the content of the first handwriting input received by the first layer to the second layer, the third layer is removed, and the display of the content in the first layer is canceled.

[0283] Among them, handwriting input may refer to inputting text or characters and other contents on an electronic device (such as a mobile phone, tablet computer, etc.) by handwriting. This input method can use a built-in stylus or finger to write on the screen, and then the device converts these handwriting fonts into recognizable standard fonts through an internal recognition system and displays them on the screen. The first layer may refer to a layer used to carry handwriting input. Pulling up the second layer may refer to creating a second layer, or setting the second layer to be visible, etc., which can carry and display handwriting input. In this embodiment, the second layer can be used to copy the first handwriting input carried by the first layer. The third layer can be understood as a shielding layer, which is used to avoid display abnormalities caused by the superposition of the first handwriting input of the first layer and the first handwriting input of the second layer. In this embodiment, optionally, the third layer may be an area that only covers the first handwriting input, or it may cover all areas of the second layer. Optionally, when the third layer only covers the area of ​​the first handwriting input, the third layer may include the background color of the first layer; when the third layer covers all areas of the second layer, the third layer also includes the content of the first layer. Removing the third layer may refer to deleting the third layer, or setting the third layer to a state that cannot be displayed, such as hiding. Canceling the display of the content in the first layer may include deleting the first layer or setting the first layer to be hidden, etc., which is not limited here.

[0284] For example, the first layer may be Figure 3 The switching layer 306 shown, the second layer may be, for example, Figure 3 The first handwriting layer 308 is shown, and the third layer can be, for example, Figure 3 A first shielding layer 310 is shown.

[0285] In a possible implementation, receiving a first handwriting input includes:

[0286] Displaying a first interface, the first interface includes a first area and a second area; receiving a first operation to switch from the second area to the first area; in response to the first operation, receiving a first handwriting input acting on the first area; using the first layer to carry the content of the first handwriting input, including: using the first layer to carry the content of the first handwriting input in the first area.

[0287] The first area and the second area may be different handwriting areas. The first operation may refer to a contact operation of the first handwriting input. For example, if the first handwriting input is the number "5", the first operation may refer to an operation of contacting the electronic device when the number "5" is handwritten. In this embodiment, the first layer may be provided in the first area to carry the first handwriting input of the first area.

[0288] For example, the first interface may be an interface as shown in 3, and the first area may be an interface as shown in Figure 3 The second area can be, for example, Figure 3 As another example, the first area may also be as follows Figure 3 The second area is shown as Figure 3 The area 1 shown is not limiting here.

[0289] In this embodiment, the first interface includes multiple areas, each of which can be used for handwriting input. It should be noted that in another possible implementation, the first interface may also have only one handwriting input area, that is, the first handwriting input is applied to the one handwriting input area.

[0290] In a possible implementation, the method further includes:

[0291] A second operation is received to turn from the first area to the second area; in response to the second operation, a second handwriting input acting on the second area is received; the first layer is used to carry the content of the second handwriting input of the second area; in the process of using the first layer to carry the content of the second handwriting input of the second area, the fourth layer is pulled up, and the fourth layer is a layer for carrying the second handwriting input of the second area; the content of the second handwriting input of the second area received by the first layer is copied to the fourth layer, wherein in the process of copying the content of the second handwriting input of the second area received by the first layer to the fourth layer, a fifth layer is arranged between the first layer and the fourth layer, and the fifth layer is used to form an obstruction between the fourth layer and the area in the first layer that receives the second handwriting input; after completing the copying of the content of the second handwriting input of the second area received by the first layer to the fourth layer, the fifth layer is removed, and the display of the content in the first layer is canceled.

[0292] Among them, the second operation may refer to the contact operation of the second handwriting input, and the description of the first operation may be referred to. The fourth layer may refer to the description of the second layer, and the fifth layer may refer to the description of the third layer, which will not be repeated here.

[0293] Optionally, in another possible implementation, there may be no shielding between the first layer and the fourth layer, that is, the fifth layer may not be provided between the first layer and the fourth layer.

[0294] In a possible implementation, the method further includes:

[0295] When the second operation is received, the content of the first handwriting input carried by the second layer is inserted into the first area in an image manner and the second layer is removed.

[0296] The content of the first handwriting input currently carried by the second layer may be inserted in the form of an image. After the content of the first handwriting input is inserted, the second layer no longer continues to carry the first handwriting input. For example, assuming that the second layer copies the number "5", after copying the number "5", the second layer continues to carry handwriting input, such as the number "6". At this time, if the second operation is received, the numbers "5" and "6" are inserted into the area where the second layer is located in the form of an image, such as inserted into the second area.

[0297] In addition, the image may be inserted once each time a complete handwriting input is carried, and the second layer is removed only when a second operation is received. For example, assuming that the second layer copies the number "5", the number "5" is inserted as an image, and continues to carry handwriting input, such as the number "6", the number "6" is inserted as an image, and when the second operation is received, the bottom layer is removed.

[0298] In another possible implementation, the insertion of the first handwriting input content carried by the second layer into the first area in the form of an image and the removal of the second layer may be triggered at other times, for example, the second layer may be removed when the second handwriting input content carried by the first layer starts to be copied to the fourth layer, during the copying process or after the copying is completed, and there is no limitation here.

[0299] In a possible implementation, before using the first layer to carry the content of the first handwriting input, the method further includes:

[0300] Setting the first layer from a first state to a second state, wherein the first state includes a state that cannot carry handwriting input, and the second state includes a state that can carry handwriting input; canceling the display of content in the first layer includes: setting the first layer from the second state to the first state.

[0301] The first state may be a hidden state, and the second state may be a visible state. The hidden state and the visible state may refer to the description of the above embodiment, and will not be elaborated here.

[0302] In another possible implementation, the first layer may be generated when or before the first layer is needed to carry the first handwriting input, so that when the content of the first layer is copied to the second layer, the first layer may be deleted or set to a hidden state. Optionally, the first layer may be created when the electronic device predicts that the handwriting input is about to switch from the second area to the first area.

[0303] In another possible implementation, copying the content of the first handwriting input received by the first layer to the second layer includes:

[0304] The content of the first handwriting input received by the first layer is written into a message queue, and the content in the message queue is copied to the second layer.

[0305] In another possible implementation, the content of the first handwriting input received by the first layer may be directly copied to the second layer without passing through the message queue.

[0306] In a possible implementation, the method further includes:

[0307] When the content of the first handwriting input received at the first layer is copied to the second layer, a third layer is generated.

[0308] In another possible implementation, the third layer may be generated in the process of copying the first handwriting input content received at the first layer to the second layer, or the third layer may be generated before copying the first handwriting input content received at the first layer to the second layer, which will not be elaborated here.

[0309] The present application embodiment provides another handwriting input processing method, including:

[0310] Display a second interface, the second interface includes a third area supporting handwriting input; use the sixth layer to carry the third handwriting input acting on the third area; receive a third operation on the third area; in response to the third operation, adjust the size of the third area and the seventh layer, the seventh layer is a layer for carrying the third handwriting input; when the size adjustment of the seventh layer is completed, copy the content of the third handwriting input received by the sixth layer to the seventh layer, wherein in the process of copying the content of the third handwriting input received by the sixth layer to the seventh layer, an eighth layer is set between the sixth layer and the seventh layer, and the eighth layer is used to form an obstruction between the areas receiving the third handwriting input in the sixth layer and the seventh layer; after completing the copying of the content of the third handwriting input received by the sixth layer to the seventh layer, remove the sixth layer, and cancel the display of the content in the sixth layer.

[0311] Among them, the third area and the first area or the second area can be the same or different areas, that is, the third area and the first area can be the same or different areas, and the third area and the second area can be the same or different areas, which is not limited here. The sixth layer is used to carry the handwriting input of the third area. The sixth layer can be set at the location of the third area to cover the third area. The third operation may refer to an operation to adjust the size of the third area and the seventh layer. For example, the third operation may be a drag operation or a drag operation. The sixth layer can refer to the description of the first layer, the seventh layer can refer to the description of the second layer, and the eighth layer can refer to the description of the third layer, which will not be repeated here. The size may include the length along the first direction and the length along the second direction.

[0312] Exemplarily, the second interface may be, for example, Figure 5 In the interface shown in FIG. 1 , the third area may be, for example, Figure 5 The sixth layer in the region 3 shown may be, for example, Figure 5 The first handwriting layer 308 shown, the seventh layer can be, for example, Figure 5 The mobile layer 312 shown, the eighth layer can be, for example, Figure 5 The second shielding layer 314 is shown. It should be noted that the sizes of the third area and the seventh layer can be adjusted simultaneously or successively, for example, the size of the third area is adjusted first, and then the size of the seventh layer is adjusted, etc., which is not limited here. In this embodiment, optionally, before adjusting the sizes of the third area and the seventh layer, the seventh layer does not carry any content.

[0313] In this embodiment, the manner in which the sixth layer copies the handwritten input content to the seventh layer can refer to the description of the above embodiment, which will not be elaborated here.

[0314] In a possible implementation, the method further includes:

[0315] Receiving a fourth operation acting on the third area; in response to the fourth operation, displaying a control for adjusting the third area on the second interface; receiving a third operation for the third area, including: receiving a third operation acting on the control for adjusting the third area.

[0316] The fourth operation may be an operation that causes the control in the third area to appear. Figure 6 The click operation shown in FIG. 1 may be used to adjust the control of the third area. Figure 6 A first drag control 318 and a second drag control 320 are shown.

[0317] In another possible implementation, the size of the third area can be adjusted by directly dragging the third area, which is not limited here. In addition, the number of contact objects acting on the area can be identified, and whether it is handwriting input or area adjustment can be identified based on the number of contact objects. For example, if a single finger acts on the handwriting area, it is considered as handwriting input, and if multiple fingers act on the handwriting area, it is considered as area adjustment. Then, the size of the area can be adjusted by dragging multiple fingers simultaneously on the third area.

[0318] The present application embodiment provides another handwriting input processing method, including:

[0319] Displaying a third interface, the third interface includes a fourth area supporting handwriting input; receiving a fifth operation for the fourth area; adjusting the size of the fourth area in response to the fifth operation; when the size adjustment of the fourth area is completed, adjusting the size of the ninth layer to match the size of the fourth area, the ninth layer being used to carry the fourth handwriting input acting on the fourth area.

[0320] The fourth area and the third area may be the same or different areas. The fifth operation may refer to the description of the third operation, which is not described here. Size matching may include size consistency. Exemplarily, the fourth area may be, for example, Figure 6 The area 4 shown, the ninth layer may be, for example, Figure 6 A third handwriting layer 322 is shown.

[0321] Optionally, the ninth layer and the sixth layer or the seventh layer may be the same layer. Optionally, in a possible implementation, the fourth area and the third area are the same area, and the ninth layer and the sixth layer are the same layer, and the size of the fourth area may be adjusted first, and then the size of the sixth layer may be adjusted. In another possible implementation, the fourth area and the third area are the same area, and the ninth layer and the seventh layer are the same layer, and the size of the fourth area may be adjusted first, and then the size of the seventh layer may be adjusted, and then the content of the sixth layer may be copied to the seventh layer.

[0322] In a possible implementation, the target image includes a fourth handwriting input acting on a fourth area, and adjusting the size of the fourth area includes:

[0323] Adjust the size of the target image.

[0324] In this embodiment, the target image may include the content of the handwriting input. Optionally, the target image may be an image converted from the content of the handwriting input carried by the handwriting layer.

[0325] In a possible implementation, the method is applied to an electronic device, the electronic device includes a first module for managing the fourth area and a second module for managing the ninth layer, and adjusting the size of the fourth area includes:

[0326] The size of the fourth area is adjusted using the first module; and the size of the ninth layer is adjusted to match the size of the fourth area, including:

[0327] The first module is used to transmit the size adjustment information of the fourth area to the second module, and the second module is used to adjust the size of the ninth layer according to the size adjustment information.

[0328] In this embodiment, optionally, the first module may be a web page view or a JS end that controls the web page view, and the second module may be a handwriting manager or an Android end that controls the handwriting manager, which is not limited here.

[0329] In another possible implementation, one module may be used to manage the fourth area and the ninth layer, that is, one module may be used to manage the layer and the rich text layer.

[0330] It can be understood that the above scenarios are only some examples. The scenarios that can be implemented in the embodiments of the present application can be implemented by configuring the instances executed by the sub-threads, and no limitation is made to the specific scenarios here.

[0331] It should be noted that the module names involved in the embodiments of the present application can be defined as other names as long as the functions of each module can be achieved, and there is no specific restriction on the names of the modules.

[0332] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0333] The handwriting input processing method of the embodiment of the present application has been described above, and the device for executing the above method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the device provided by the embodiment of the present application can execute the steps in the above list sorting method.

[0334] The handwriting input processing method provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.

[0335] An embodiment of the present application provides a terminal device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the above method.

[0336] like Fig. 9 A schematic diagram of the structure of a chip provided in an embodiment of the present application: The chip 900 includes one or more (including two) processors 901 , a communication line 902 , a communication interface 903 and a memory 904 .

[0337] In some implementations, the memory 904 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.

[0338] The method described in the above embodiment of the present application can be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 901 or an instruction in the form of software. The above processor 901 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 901 can implement or execute the methods, steps and logic block diagrams related to each processing disclosed in the embodiment of the present application.

[0339] The steps of the method described in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 904, and the processor 901 reads the information in the memory 904 and completes the steps of the above method in combination with its hardware.

[0340] The processor 901 , the memory 904 , and the communication interface 903 may communicate with each other via the communication line 902 .

[0341] In the above application embodiment, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. The computer program product can be written into the memory in advance, or can be downloaded and installed in the memory in the form of software.

[0342] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above application embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0343] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0344] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0345] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0346] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A handwriting input processing method, characterized in that: include: Receiving a first handwriting input; Using the first layer to carry the content of the first handwriting input; In the process of receiving the first handwriting input by using the first layer, pulling up the second layer, where the second layer is a layer for carrying the first handwriting input; Copying the content of the first handwriting input received by the first layer to the second layer, wherein in the process of copying the content of the first handwriting input received by the first layer to the second layer, a third layer is provided between the first layer and the second layer, and the third layer is used to form an obstruction between the second layer and the area of ​​the first layer receiving the first handwriting input; After the content of the first handwriting input received by the first layer is copied to the second layer, the third layer is removed, and the display of the content in the first layer is canceled.

2. The method according to claim 1, characterized in that The receiving of the first handwriting input comprises: Displaying a first interface, wherein the first interface includes a first area and a second area; receiving a first operation of switching from the second area to the first area; In response to the first operation, receiving a first handwriting input acting on the first area; The using the first layer to carry the content of the first handwriting input includes: The first layer is used to carry the first handwriting input content of the first area.

3. The method according to claim 2, characterized in that The method further comprises: receiving a second operation of switching from the first area to the second area; In response to the second operation, receiving a second handwriting input acting on the second area; Using the first layer to carry the second handwriting input content of the second area; In the process of using the first layer to carry the second handwriting input content of the second area, pulling up a fourth layer, the fourth layer being a layer for carrying the second handwriting input of the second area; copying the content of the second handwriting input in the second area received by the first layer to the fourth layer, wherein, in the process of copying the content of the second handwriting input in the second area received by the first layer to the fourth layer, a fifth layer is provided between the first layer and the fourth layer, and the fifth layer is used to form an obstruction between the fourth layer and the area in the first layer receiving the second handwriting input; After the content of the second handwriting input in the second area received by the first layer is copied to the fourth layer, the fifth layer is removed, and the display of the content in the first layer is canceled.

4. The method according to claim 3, characterized in that The method further comprises: When the second operation is received, the content of the first handwriting input carried by the second layer is inserted into the first area in the form of an image, and the second layer is removed.

5. The method according to any one of claims 1 to 4, characterized in that Before using the first layer to carry the first handwriting input content, the method further includes: Setting the first layer from a first state to a second state, wherein the first state includes a state incapable of bearing handwriting input, and the second state includes a state capable of bearing handwriting input; The canceling the display of the content in the first layer includes: The first layer is set from the second state to the first state.

6. The method according to any one of claims 1 to 4, characterized in that The step of copying the first handwriting input content received by the first layer to the second layer includes: The content of the first handwriting input received by the first layer is written into a message queue, and the content in the message queue is copied to the second layer.

7. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The third layer is generated when the content of the first handwriting input received by the first layer is copied to the second layer.

8. The method according to claim 1, characterized in that The method further comprises: Displaying a second interface, wherein the second interface includes a third area supporting handwriting input; Using the first layer to carry a third handwriting input acting on the third area; receiving a third operation on the third area; In response to the third operation, adjusting the sizes of the third area and the second layer, the second layer being a layer for carrying a third handwriting input; When the size adjustment of the second layer is completed, copying the content of the third handwriting input received by the first layer to the second layer; After the content of the third handwriting input received by the first layer is copied to the second layer, the first layer is removed, and the display of the content in the first layer is canceled.

9. The method according to claim 8, characterized in that The method further comprises: In the process of copying the content of the third handwriting input received by the first layer to the second layer, a third layer is arranged between the first layer and the second layer, and the third layer is used to form an occlusion between the areas of the first layer and the second layer receiving the third handwriting input.

10. The method according to claim 1, characterized in that The method comprises: Displaying a third interface, wherein the third interface includes a fourth area supporting handwriting input; receiving a fifth operation for the fourth area; In response to the fifth operation, adjusting the size of the fourth area; When the size adjustment of the fourth area is completed, the size of the first layer or the second layer is adjusted to match the size of the fourth area, and the first layer or the second layer is used to carry the fourth handwriting input acting on the fourth area.

11. A handwriting input processing method, characterized in that: include: Displaying a second interface, wherein the second interface includes a third area supporting handwriting input; Using the sixth layer to carry a third handwriting input acting on the third area; receiving a third operation for the third area; In response to the third operation, adjusting the sizes of the third area and the seventh layer, the seventh layer being a layer for carrying the third handwriting input; When the size adjustment of the seventh layer is completed, the content of the third handwriting input received by the sixth layer is copied to the seventh layer, wherein in the process of copying the content of the third handwriting input received by the sixth layer to the seventh layer, an eighth layer is provided between the sixth layer and the seventh layer, and the eighth layer is used to form an obstruction between the sixth layer and the area of ​​the seventh layer receiving the third handwriting input; After the third handwriting input content received by the sixth layer is copied to the seventh layer, the sixth layer is removed, and the display of the content in the sixth layer is canceled.

12. The method according to claim 11, characterized in that The method further comprises: receiving a fourth operation acting on the third area; In response to the fourth operation, displaying a control for adjusting the third area on the second interface; The receiving a third operation for the third area includes: A third operation acting on a control to adjust the third area is received.

13. The method according to claim 11, characterized in that The method further comprises: The second interface includes a fourth area supporting handwriting input; the fourth area is the same as or different from the third area; receiving a fifth operation for the fourth area; In response to the fifth operation, adjusting the size of the fourth area; When the size adjustment of the fourth area is completed, the size of the sixth layer or the seventh layer is adjusted to match the size of the fourth area, and the sixth layer or the seventh layer is used to carry the fourth handwriting input acting on the fourth area.

14. The method according to claim 13, characterized in that The fourth area includes a target image, the target image includes a fourth handwriting input acting on the fourth area, and the adjusting the size of the fourth area includes: The size of the target image is adjusted.

15. The method according to claim 13 or 14, characterized in that Applied to an electronic device, the electronic device comprises a first module for managing a fourth area and a second module for managing the sixth layer or the seventh layer, wherein adjusting the size of the fourth area comprises: Using the first module to adjust the size of the fourth area; The step of adjusting the size of the sixth layer or the seventh layer to match the size of the fourth region comprises: The first module is used to transmit size adjustment information of the fourth area to the second module, and the second module is used to adjust the size of the sixth layer or the seventh layer according to the size adjustment information.

16. An electronic device, characterized in that: The electronic device comprises: one or more processors and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, wherein the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method as described in any one of claims 1-10 and any one of claims 11-15.

17. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-10 and any one of claims 11-15.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a method as claimed in any one of claims 1 to 10 and any one of claims 11 to 15.

19. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is executed on an electronic device, the electronic device is enabled to perform a method as claimed in any one of claims 1 to 10 and any one of claims 11 to 15.