Virtual keyboard display method and electronic equipment

By introducing intelligent recommendation areas and handwriting areas into the virtual keyboard, and combining drag-and-drop operation to switch keyboard areas, the problem of insufficient user input experience on large-screen devices by virtual keyboards has been solved, realizing a multi-functional virtual keyboard display and improving the user experience.

CN121996138APending Publication Date: 2026-05-08HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-11-08
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing virtual keyboards on large-screen devices lack innovation, fail to fully utilize the advantages of touchscreens, and result in an inadequate user input experience.

Method used

A method for displaying a virtual keyboard is provided, which allows users to switch between displaying a virtual keyboard, including a smart recommendation area, by dragging between the keyboard area and the touch area. The smart recommendation area displays a variety of recommended content, supports handwriting input, and adjusts the keyboard area layout on a foldable display screen according to the device status.

Benefits of technology

It enriches the functionality of the virtual keyboard, enhances the user experience, meets input needs in different scenarios, and makes full use of the display resources of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121996138A_ABST
    Figure CN121996138A_ABST
Patent Text Reader

Abstract

The invention provides a virtual keyboard display method and electronic equipment. In the method, the electronic equipment displays a virtual keyboard comprising a keyboard area and a touch area, the electronic equipment switches to display the virtual keyboard comprising the keyboard area and an intelligent recommendation area in response to a first operation of a user, the first operation is a dragging operation triggered by the user on a control between the keyboard area and the touch area, and the intelligent recommendation area is an intelligent recommendation area. The intelligent recommendation area is used for displaying at least one recommendation content. Through the scheme, the electronic equipment can provide virtual keyboards in various forms, the electronic equipment can switch to display the virtual keyboards including the intelligent recommendation area, various recommendation contents are displayed in the intelligent recommendation area, display resources of the electronic equipment are fully utilized, and the functions of the virtual keyboards are enriched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a virtual keyboard display method and electronic device. Background Technology

[0002] As terminal devices continue to evolve, touchscreen devices are being updated and iterated towards increasingly larger screens, such as from candybar phones to foldable phones, and from laptops to foldable touchscreen laptops. Large-screen devices can provide a variety of display solutions through multi-device collaboration, split-screen display, and other functions, thereby providing users with a better audio-visual experience.

[0003] On large-screen devices, users can bring up a virtual keyboard and input content through it. How to leverage the advantages of touchscreens to innovate the existing keyboard input experience has become a research direction of great interest in this field. Summary of the Invention

[0004] This application provides a virtual keyboard display method and an electronic device for providing a multifunctional virtual keyboard.

[0005] In a first aspect, this application provides a virtual keyboard display method, which can be executed by an electronic device. The method includes: the electronic device displaying a virtual keyboard including a keyboard area and a touch area; in response to a first operation by a user, the electronic device switching the display of the virtual keyboard including a keyboard area and a smart recommendation area, wherein the first operation is a drag operation triggered by the user on a control between the keyboard area and the touch area, and the smart recommendation area is used to display at least one recommended item.

[0006] In the above methods, electronic devices can provide virtual keyboards in various forms. The electronic devices can switch between displaying virtual keyboards including intelligent recommendation areas, and display various recommended content in the intelligent recommendation areas, making full use of the display resources of electronic devices, enriching the functions of virtual keyboards, and improving user experience.

[0007] In one possible design, the at least one recommended item displayed in the smart recommendation area includes at least one of the following: application icon, folder, application component, and service card. This design allows the smart recommendation area to display a variety of recommended content, enabling users to view frequently used cards or quickly launch applications, thus improving the user experience.

[0008] In one possible design, the at least one recommended item displayed in the intelligent recommendation area is pre-configured by the system, user-defined, or determined based on user habits. This design allows for flexible determination of the content displayed in the intelligent recommendation area to meet user needs such as quickly launching applications or viewing cards.

[0009] In one possible design, the intelligent recommendation area includes multiple pages of recommended content; after switching the display of the virtual keyboard including the keyboard area and the intelligent recommendation area, the method further includes: in response to a second user operation, switching the page displayed in the intelligent recommendation area. This design allows the intelligent recommendation area to hold more content and provides convenient access to various functions.

[0010] In one possible design, after switching the display of the virtual keyboard, which includes a keyboard area and a smart recommendation area, the method further includes: switching the display of the virtual keyboard, which includes the keyboard area and the touch area, in response to a third user operation; wherein the third operation is a drag operation triggered by the user on a control between the smart recommendation area and the keyboard area, or a drag operation triggered by the user on a control below the keyboard area. With this design, the electronic device can also switch the display of the virtual keyboard, including the keyboard area and the touch area, in response to user operations, allowing the electronic device to switch between various virtual keyboard configurations based on user actions, thus meeting the user's virtual keyboard usage needs in different scenarios.

[0011] In one possible design, after switching the display of a virtual keyboard including the keyboard area and the touch area, the method further includes: in response to a fourth user action, switching the display of a virtual keyboard including a handwriting area; wherein the handwriting area is used to receive handwriting input from the user; the fourth action is either a two-finger spread operation triggered by the user in the touch area, or a drag operation triggered by the user on a control between the keyboard area and the touch area. Through this design, the electronic device can switch the display of a virtual keyboard including a handwriting area to provide support for handwriting input, meeting the user's input needs in different scenarios.

[0012] In one possible design, the virtual keyboard including the handwriting area also includes the keyboard area. After switching the display of the virtual keyboard including the handwriting area, the method further includes: in response to a fifth operation by the user, hiding the keyboard area and adjusting the size of the handwriting area; wherein the fifth operation is a drag operation triggered by the user on a control between the handwriting area and the keyboard area. With this design, the electronic device switches to display a larger handwriting area, and the switched virtual keyboard does not include the keyboard area, allowing the user to enter handwriting or drawing input in a larger handwriting area, thus enriching the functionality of the virtual keyboard.

[0013] In one possible design, after switching the display of the virtual keyboard including the handwriting area, the method further includes: in response to a sixth operation by the user, switching the display of the virtual keyboard including the keyboard area and the touch area; wherein the sixth operation is a two-finger pinch operation triggered by the user in the handwriting area; or the sixth operation is a drag operation triggered by the user on a control on the left side of the handwriting area.

[0014] In one possible design, the electronic device includes a foldable display screen. With this design, the virtual keyboard display method provided in this application can be applied to electronic devices with foldable displays to fully utilize the display resources of the foldable display screen, providing users with virtual keyboards in various forms to meet their input needs in different scenarios.

[0015] In one possible design, when the electronic device is in portrait mode, the virtual keyboard is located on the lower half of the display screen in either a folded or unfolded state. The keyboard area is positioned above the touch area, below the smart recommendation area, or above the handwriting area. When the electronic device is in landscape mode, the virtual keyboard is located on the lower half of the unfolded display screen. The keyboard area is positioned to the left of the touch area or to the right of the smart recommendation area. This design allows the layout of multiple areas within the virtual keyboard to be adjusted according to the device's orientation, catering to different user habits.

[0016] Secondly, this application provides a virtual keyboard display method applied to an electronic device. The method includes: displaying a virtual keyboard including a keyboard area and a touch area; and switching the display of a virtual keyboard including a handwriting area in response to a fourth operation by a user; wherein the handwriting area is used to receive handwriting input from the user; the fourth operation is a two-finger spread operation triggered by the user in the touch area, or the fourth operation is a drag operation triggered by the user on a control between the keyboard area and the touch area.

[0017] In the above methods, electronic devices can switch the display of a virtual keyboard that includes a handwriting area to provide support for handwriting input and meet the user's input needs in different scenarios.

[0018] In one possible design, the virtual keyboard including the handwriting area also includes the keyboard area. After switching the display of the virtual keyboard including the handwriting area, the method further includes: in response to a fifth operation by the user, hiding the keyboard area and adjusting the size of the handwriting area; wherein the fifth operation is a drag operation triggered by the user on a control between the handwriting area and the keyboard area.

[0019] In one possible design, after switching the display of the virtual keyboard including the handwriting area, the method further includes: in response to a sixth operation by the user, switching the display of the virtual keyboard including the keyboard area and the touch area; wherein the sixth operation is a two-finger pinch operation triggered by the user in the handwriting area; or the sixth operation is a drag operation triggered by the user on a control on the left side of the handwriting area.

[0020] In one possible design, the electronic device includes a foldable display screen.

[0021] In one possible design, when the electronic device is in portrait mode, the virtual keyboard is located on the lower half of the display screen in a folded state, or the virtual keyboard is located on the lower half of the display screen in an unfolded state, with the keyboard area of ​​the virtual keyboard located above the touch area, or the keyboard area of ​​the virtual keyboard located above the handwriting area; when the electronic device is in landscape mode, the virtual keyboard is located on the lower half of the display screen in an unfolded state, with the keyboard area of ​​the virtual keyboard located to the left of the touch area.

[0022] Thirdly, this application provides an electronic device comprising multiple functional modules; the multiple functional modules interact to implement the methods performed by the electronic device in any of the above aspects and their respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.

[0023] Fourthly, this application provides an electronic device including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes any of the above aspects and the methods executed by the electronic device in its various embodiments.

[0024] Fifthly, this application also provides a computer program product containing instructions that, when the computer program product is run on a computer, cause the computer to perform the method executed by the electronic device in any of the above aspects and embodiments.

[0025] Sixthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform any of the above aspects and their embodiments, or the method performed by an electronic device.

[0026] In a seventh aspect, this application also provides a chip for reading a computer program stored in a memory and executing the method executed by the electronic device in any of the above aspects and embodiments.

[0027] Eighthly, this application also provides a chip system including a processor for supporting a computer device in implementing the methods executed by electronic devices in any of the above aspects and their embodiments. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description

[0028] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0029] Figure 2 A software structure block diagram of an electronic device provided in an embodiment of this application;

[0030] Figure 3 Schematic diagrams illustrating various forms of a virtual keyboard provided in embodiments of this application;

[0031] Figure 4 A schematic diagram illustrating the switching of different forms of the first virtual keyboard provided in this application embodiment;

[0032] Figure 5 A schematic diagram illustrating the switching between different forms of the second virtual keyboard provided in this application embodiment;

[0033] Figure 6 A schematic diagram illustrating the switching of different forms of the third virtual keyboard provided in this application embodiment;

[0034] Figure 7 A schematic diagram illustrating the switching of different forms of the fourth virtual keyboard provided in this application embodiment;

[0035] Figure 8 A schematic diagram of an intelligent recommendation area provided in an embodiment of this application;

[0036] Figure 9 A schematic diagram illustrating the switching of different forms of the fifth virtual keyboard provided in this application embodiment;

[0037] Figure 10A schematic diagram illustrating the switching of different forms of the sixth virtual keyboard provided in this application embodiment;

[0038] Figure 11 A schematic diagram illustrating the switching of different forms of the seventh virtual keyboard provided in this application embodiment;

[0039] Figure 12 A schematic diagram illustrating the switching of different forms of the eighth virtual keyboard provided in this application embodiment;

[0040] Figure 13 A schematic diagram illustrating the switching of different forms of the ninth virtual keyboard provided in this application embodiment;

[0041] Figure 14 A flowchart illustrating a virtual keyboard display method provided in an embodiment of this application. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.

[0043] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer 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, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0044] When using a touchscreen device, users can input content through a virtual keyboard displayed on the screen. A typical virtual keyboard is similar in structure to a physical keyboard, and users can click on controls sequentially to complete input. With the development of terminal devices, touchscreen devices are evolving towards increasingly larger screens, such as foldable full-touchscreen laptops. Larger screens provide users with more space to display content and offer more ways to interact with the device.

[0045] This application provides a virtual keyboard display method, which can be executed by an electronic device. In this method, when the electronic device displays a virtual keyboard including a keyboard area and a touch area, in response to a user's first operation, the electronic device can switch between displaying a virtual keyboard including a keyboard area and a smart recommendation area. The first operation can be a drag-and-drop operation triggered by the user on a control between the keyboard area and the touch area. Through this solution, the electronic device can switch between displaying the virtual keyboard including the smart recommendation area and display various recommended content in the smart recommendation area to enrich the functionality of the virtual keyboard and fully utilize the display resources of the electronic device.

[0046] In some embodiments, when an electronic device displays a virtual keyboard including a keypad area and a touch area, in response to a fourth user action, the electronic device can switch to displaying a virtual keyboard including a handwriting area. The fourth action can be a two-finger spread operation triggered by the user in the touch area. Through this scheme, the electronic device can switch between displaying a virtual keyboard including a handwriting area, thus providing a virtual keyboard that supports handwriting input and meeting the user's input needs in different scenarios.

[0047] The following describes an electronic device and embodiments for using such an electronic device. The electronic device in this application embodiment includes a touchscreen, such as a foldable full-touchscreen laptop, tablet, mobile phone, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), wearable device, etc. This application embodiment does not limit the specific type of electronic device.

[0048] In some embodiments of this application, the electronic device may also be a portable terminal device that includes other functions such as a personal digital assistant and / or a music player. Exemplary embodiments of the portable terminal device include, but are not limited to, devices equipped with... Or portable terminal devices with other operating systems.

[0049] Figure 1 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application. Figure 1As shown, 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0050] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has recently used or is repeatedly used. If processor 110 needs to reuse an instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.

[0051] USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. Charging management module 140 receives charging input from the charger. Power management module 141 connects battery 142, charging management module 140, and processor 110. Power management module 141 receives input from battery 142 and / or charging management module 140, providing power to processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0052] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0053] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0054] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0055] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0056] The display screen 194 is used to display the display interface of an application, such as the display page of an application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0057] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0058] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of electronic device 100 (e.g., captured images, recorded videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0059] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.

[0060] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0061] The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.

[0062] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.

[0063] Touch sensor 180C, also known as a "touch panel," can be located on display screen 194. The touch sensor 180C and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180C detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180C may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0064] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, touch operations applied to different applications (such as taking photos, audio playback, etc.) can correspond to different vibration feedback effects. Touch vibration feedback effects can also be customized. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with electronic device 100.

[0065] Understandable, Figure 1The components shown do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or fewer components than shown, or combine some components, or separate some components, or have different component arrangements. Furthermore, Figure 1 The combination / connection relationships between the components can also be adjusted and modified.

[0066] Figure 2 This is a software structure block diagram of an electronic device provided in an embodiment of this application. For example... Figure 2 As shown, the software architecture of an electronic device can be a layered architecture. For example, the software can be divided into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system libraries, and the kernel layer.

[0067] The application layer can include a series of application packages. For example... Figure 2 As shown, the application layer can include camera, settings, skin modules, user interface (UI), third-party applications, etc. Third-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc.

[0068] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer can include some predefined functions. For example... Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, and notification manager.

[0069] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0070] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0071] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0072] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0073] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0074] The runtime includes the core libraries and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0075] The core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core libraries of the operating system. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0076] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGLES), 2D graphics engines (e.g., SGL), image processing libraries, etc.

[0077] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0078] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0079] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0080] A 2D graphics engine is a graphics engine for 2D drawing.

[0081] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0082] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, and touch sensors.

[0083] It should be noted that, Figure 1 and Figure 2 The structure shown is merely an example of an electronic device provided in this application embodiment and is not intended to limit the electronic device provided in this application embodiment in any way. In specific implementations, the electronic device may have more than Figure 1 or Figure 2 The structure shown may contain more or fewer devices or modules.

[0084] The virtual keyboard display method provided in the embodiments of this application is described below.

[0085] In this embodiment, the virtual keyboard displayed on the electronic device may include a keyboard area. Further, the virtual keyboard may also include any one of a touch area, a smart recommendation area, or a handwriting area. The touch area receives user touch operations, such as user actions to control the cursor on the electronic device, such as moving the cursor, right-clicking, or left-clicking. The smart recommendation area displays application icons, service cards, etc. The handwriting area receives user handwritten input, such as handwritten content input by the user using a finger or stylus. The electronic device receives the handwritten content input by the user and can recognize the user's handwritten input to determine the text, or the electronic device can directly acquire the user's handwritten text or doodles. For example... Figure 3 This application provides schematic diagrams illustrating various forms of a virtual keyboard, as shown in the embodiments. Figure 3 In (a), the virtual keyboard displayed on the electronic device may include a keyboard area and a touch area; see reference. Figure 3 In (b), the virtual keyboard displayed on the electronic device may include a keyboard area and a smart recommendation area; see reference. Figure 3 In (c), the virtual keyboard displayed by the electronic device may include a keyboard area and a handwriting area; in some examples, see reference... Figure 3 In (d), the virtual keyboard displayed by the electronic device may also include a handwriting area that occupies a larger display area, in which case the virtual keyboard may not include a keyboard area.

[0086] Optionally, when the electronic device includes a foldable display screen, if the electronic device is in portrait mode, the electronic device can display a virtual keyboard in the lower half of the display screen in the folded state, or the electronic device can display a virtual keyboard in the lower half of the display screen in the unfolded state. If the electronic device is in landscape mode, the electronic device can display a virtual keyboard in the lower half of the display screen in the unfolded state.

[0087] The following section further describes the switching methods between different virtual keyboard modes and the functions supported by different virtual keyboard modes in the embodiments of this application.

[0088] Example 1

[0089] In this embodiment of the application, when a user needs to use the virtual keyboard, the user can trigger an operation to wake up the virtual keyboard. For example, the operation to wake up the virtual keyboard can be a multi-finger tapping operation on a preset area of ​​the screen, such as the user tapping the lower half of the screen of the electronic device with eight fingers. Alternatively, the operation to wake up the virtual keyboard can be a tapping operation triggered by the user on the wake-up control. The wake-up control is a control used to wake up the virtual keyboard. The wake-up control can be located in the status bar displayed at the top or bottom of the screen of the electronic device. Alternatively, the wake-up control can be a floating control displayed on the screen of the electronic device.

[0090] The electronic device displays the virtual keyboard in response to a user-triggered activation of the virtual keyboard. When the user activates the virtual keyboard, the electronic device can display a standard virtual keyboard, which may include a keyboard area and a touch area. For example, Figure 3 (a) in this application is a typical virtual keyboard provided in an embodiment of the present application. The layout of the keyboard area in the virtual keyboard can be consistent with that of the physical keyboard.

[0091] In this embodiment of the application, when the electronic device displays a virtual keyboard including a keyboard area and a touch area, in response to the user's first operation, the electronic device can switch between displaying a virtual keyboard including a keyboard area and a smart recommendation area.

[0092] In some examples, when the electronic device is in portrait mode, the virtual keyboard displayed includes a keypad and a touchpad, with the keypad positioned above the touchpad. In this case, the first action can be a downward drag triggered by the user on a control between the keypad and the touchpad. For example, Figure 4 This is a schematic diagram illustrating the switching between different forms of a first virtual keyboard provided in an embodiment of this application. (Reference) Figure 4When an electronic device displays a virtual keyboard including a keypad and a touchpad, the user can trigger a downward drag operation on the control between the keypad and touchpad to switch the display of the virtual keyboard, which includes a smart recommendation area and a keypad. Optionally, in this example, the smart recommendation area can be located above the keypad. The smart recommendation area can be used to display application icons, folders, application components, service cards, etc., of applications installed on the electronic device. For example, the smart recommendation area can be used to display application icons of frequently used applications, or the content displayed in the smart recommendation area can be user-customizable.

[0093] In other examples, when the electronic device is in landscape mode, the virtual keyboard displayed includes a keypad and a touchpad, with the keypad located to the left of the touchpad. In this case, the first action can be a rightward drag operation triggered by the user on a control between the keypad and the touchpad. For example, Figure 5 This is a schematic diagram illustrating the switching between different forms of a second virtual keyboard provided in an embodiment of this application. (Reference) Figure 5 When an electronic device displays a virtual keyboard including a keypad and a touchpad, a user can trigger a right-drag operation on the controls between the keypad and touchpad to toggle the display of the virtual keyboard, which includes a smart recommendation area and a keypad. Optionally, in this example, the smart recommendation area can be located to the right of the keypad. Figure 5 Taking the display of multiple application components such as adjusting screen brightness, keyboard brightness, and volume in the intelligent recommendation area as an example, in practice, electronic devices can also display service cards, application icons, folders, and other content in the intelligent recommendation area.

[0094] In this embodiment of the application, when the electronic device displays a virtual keyboard including a keyboard area and a smart recommendation area, in response to a third operation by the user, the electronic device can switch the display of the virtual keyboard including the keyboard area and the touch area.

[0095] In some examples, when the electronic device is in portrait mode, the virtual keyboard displayed includes a smart recommendation area and a keyboard area, with the smart recommendation area positioned above the keyboard area. In this case, the third action can be an upward drag operation triggered by the user on a control between the smart recommendation area and the keyboard area. For example, Figure 6 This is a schematic diagram illustrating the switching between different forms of a third type of virtual keyboard provided in an embodiment of this application. (Reference) Figure 6 When an electronic device displays a virtual keyboard that includes a smart recommendation area and a keyboard area, the user can trigger an upward drag operation on the controls below the keyboard area, and the electronic device will switch the display of the virtual keyboard that includes the keyboard area and the touch area.

[0096] In other instances, when the electronic device is in landscape mode, the virtual keyboard displayed includes a smart recommendation area on the left side of the keyboard area. In this case, the third operation can be a leftward drag operation triggered by the user on a control between the smart recommendation area and the keyboard area. For example, Figure 7 This is a schematic diagram illustrating the switching between different forms of the fourth virtual keyboard provided in an embodiment of this application. (See reference) Figure 7 When an electronic device displays a virtual keyboard that includes a smart recommendation area and a keyboard area, the user can trigger a right-drag operation on the control between the keyboard area and the smart recommendation area, and the electronic device will switch the display of the virtual keyboard that includes the keyboard area and the touch area.

[0097] In one optional implementation, when the electronic device displays a virtual keyboard including a smart recommendation area and a keyboard area, the recommendation page displayed in the smart recommendation area may include multiple pages of content. In response to a second user action, the electronic device can switch between pages displayed in the smart recommendation area. This second action can be a swipe operation triggered by the user within the smart recommendation area. In this way, the smart recommendation area can hold more content, and the user can switch between the content displayed in the smart recommendation area. For example, Figure 8 This is a schematic diagram of an intelligent recommendation area provided in an embodiment of this application, with reference to... Figure 8 In (a) of this example, when the electronic device is in portrait mode, the Smart Recommendation area can be located above the keyboard area. Users can swipe up or down within the Smart Recommendation area to switch between currently displayed pages, allowing them to find desired controls, service cards, or applications. (See also...) Figure 8 In (b), when the electronic device is in landscape mode, the smart recommendation area can be located to the left of the keyboard area. Users can trigger up and down swiping operations in the smart recommendation area to switch the currently displayed page in the smart recommendation area of ​​the electronic device.

[0098] It should be noted that the positional relationship between the intelligent recommendation area and the keyboard area in different states of the electronic device in the above embodiments is only an example and not a limitation. In specific implementations, the virtual keyboard may have other layout styles, and the first operation and the third operation may also be other gesture operations. This application embodiment does not limit this.

[0099] Example 2

[0100] In this embodiment of the application, when the electronic device displays a virtual keyboard including a keyboard area and a touch area, in response to the user's fourth operation, the electronic device can switch to display a virtual keyboard including a handwriting area. Optionally, the switched virtual keyboard may or may not include a keyboard area.

[0101] In some examples, when the electronic device is in portrait mode, the virtual keyboard displayed includes a keypad and a touchpad, with the keypad positioned above the touchpad. In this case, the fourth action can be a two-finger gesture triggered by the user within the touchpad. For example, Figure 9 This is a schematic diagram illustrating the switching between different forms of the fifth type of virtual keyboard provided in this application embodiment. (Reference) Figure 9 When an electronic device displays a virtual keyboard that includes a keypad area and a touch area, and the user triggers a two-finger spread gesture in the touch area, the electronic device can switch between displaying the virtual keyboard that includes both a keypad area and a handwriting area, such as... Figure 9 As shown, the handwriting area can be located below the keyboard area, and the handwriting area can be used to receive the user's handwritten input.

[0102] Optionally, when the electronic device displays a virtual keyboard including a keyboard area and a handwriting area, in response to the user's fifth operation, the electronic device can switch to displaying a virtual keyboard including a handwriting area, and the size of the handwriting area in the virtual keyboard after the switch is larger than the size of the handwriting area in the virtual keyboard before the switch; the fifth operation can be an upward drag operation triggered by the user on a control between the keyboard area and the handwriting area. For example, Figure 10 This is a schematic diagram illustrating the switching between different forms of the sixth virtual keyboard provided in this application embodiment. (Reference) Figure 10 When an electronic device displays a virtual keyboard that includes a keyboard area and a handwriting area, the user can trigger an upward drag operation on the control between the keyboard area and the handwriting area. The electronic device will then switch to display a larger handwriting area, and the virtual keyboard after the switch will not include the keyboard area. This allows the user to enter handwriting or drawing input in a larger handwriting area, enriching the functionality of the virtual keyboard.

[0103] In other examples, when the electronic device is in landscape mode, the virtual keyboard displayed includes a keyboard area and a touch area, with the keyboard area located to the left of the touch area. In this case, the fourth operation can be a leftward drag operation triggered by the user on a control between the keyboard area and the touch area. For example, Figure 11 This is a schematic diagram illustrating the switching between different forms of the seventh virtual keyboard provided in an embodiment of this application. (Reference) Figure 11 When an electronic device displays a virtual keyboard that includes a keyboard area and a handwriting area, if the user drags the control between the keyboard area and the handwriting area to the left, the electronic device can switch to displaying a virtual keyboard that includes the handwriting area. At this time, the virtual keyboard does not include the keyboard area, and the user can perform handwriting input in the handwriting area.

[0104] In this embodiment of the application, when the electronic device displays a virtual keyboard including a handwriting area, in response to the user's sixth operation, the electronic device can switch between displaying a virtual keyboard including a keyboard area and a touch area.

[0105] In some examples, when the electronic device is in portrait mode, if the virtual keyboard displayed on the device includes a keyboard area and a handwriting area, with the keyboard area above the handwriting area, the sixth operation can be a two-finger pinch operation triggered by the user in the handwriting area. For example, Figure 12 This is a schematic diagram illustrating the switching between different forms of the eighth virtual keyboard provided in this application embodiment. (Reference) Figure 12 When an electronic device displays a virtual keyboard that includes a keyboard area and a handwriting area, the user can trigger a two-finger pinch operation in the handwriting area, and the electronic device can switch between displaying the virtual keyboard that includes the keyboard area and the touch area.

[0106] Optionally, if the virtual keyboard displayed by the electronic device includes a handwriting area but does not include a keyboard area, the user can trigger a downward drag operation on the control above the handwriting area. At this time, the electronic device can switch the display of a virtual keyboard that includes both a keyboard area and a handwriting area. If the user triggers a two-finger pinch operation again in the handwriting area, the electronic device can switch the display of a virtual keyboard that includes both a keyboard area and a touch area.

[0107] In other examples, when the electronic device is in landscape mode, it displays a virtual keyboard that includes a handwriting area. In this case, the sixth action can be a rightward drag operation triggered by the user on a control to the left of the handwriting area. For example, Figure 13 This is a schematic diagram illustrating the switching between different forms of the ninth virtual keyboard provided in this application embodiment. (Reference) Figure 13 When an electronic device displays a virtual keyboard that includes a handwriting area, the user can trigger a right-drag operation on the control to the left of the handwriting area, and the electronic device can switch between displaying a virtual keyboard that includes a keyboard area and a touch area.

[0108] It should be noted that the positional relationship between the handwriting area and the keyboard area in different states of the electronic device in the above embodiments is only an example and not a limitation. In specific implementations, the virtual keyboard may have other layout styles, and the fourth, fifth, and sixth operations may also be other gesture operations. This application embodiment does not limit this.

[0109] In some embodiments of this application, the virtual keyboard in the electronic device can support a keyboard area, a touch area, a smart recommendation area, and a handwriting area. The electronic device can switch between displaying virtual keyboards in different forms to meet the user's input needs in different scenarios. Optionally, when displaying a virtual keyboard including a keyboard area and a touch area, the electronic device can switch to displaying a virtual keyboard including a smart recommendation area and a keyboard area in response to user operation, or it can switch to displaying a virtual keyboard including a handwriting area. When displaying a virtual keyboard including a smart recommendation area and a keyboard area, the electronic device can switch to retrying the virtual keyboard in the keyboard area and touch area in response to user operation, and can also switch to displaying the virtual keyboard in the handwriting area again in response to user operation. When displaying a virtual keyboard including a handwriting area, the electronic device can switch to displaying a virtual keyboard including a keyboard area and a touch area in response to user operation, and can also switch to displaying the virtual keyboard including a smart recommendation area and a keyboard area again in response to user operation, thereby enabling switching between multiple different forms of virtual keyboards to meet the user's different input needs. The styles and switching methods of the virtual states in different forms can be found in the foregoing embodiments, and repeated details will not be elaborated further.

[0110] Based on the same concept, embodiments of this application also provide a virtual keyboard display method, which can be executed by an electronic device, such as... Figure 14 A flowchart illustrating a virtual keyboard display method provided in this application embodiment is shown below. Figure 14 The method includes the following steps:

[0111] S1401: Electronic device displays a virtual keyboard including a keypad area and a touch area.

[0112] For example, electronic device displays Figure 3 The virtual keyboard shown in (a) includes a keyboard area and a touch area.

[0113] S1402: In response to the user's first action, switch the display of the virtual keyboard, including the keyboard area and the smart recommendation area.

[0114] The first operation is a drag operation triggered by the user on the control between the keyboard area and the touch area, and the smart recommendation area is used to display at least one recommended item.

[0115] For example, refer to Figure 4The first operation can be a downward drag operation triggered by the user on the control between the keyboard area and the touch area. The electronic device can switch the display of a virtual keyboard including a smart recommendation area and a keyboard area. Optionally, the at least one recommended item displayed in the smart recommendation area includes at least one of application icons, folders, application components, and service cards. Users can view frequently used cards or quickly launch applications in the smart recommendation area, thereby enriching the functionality of the virtual keyboard and improving the user experience.

[0116] In one optional implementation, the smart recommendation area includes multiple pages of recommended content; after the virtual keyboard, which includes both the keyboard area and the smart recommendation area, is switched, the electronic device switches the pages displayed in the smart recommendation area in response to a second user operation. For example, see reference... Figure 8 The smart recommendation area can include multiple pages of recommended content. Users can trigger up and down swiping actions in the smart recommendation area to switch the pages displayed.

[0117] In one optional implementation, after switching the display of the virtual keyboard including the keyboard area and the smart recommendation area, in response to a third user operation, the display of the virtual keyboard including the keyboard area and the touch area is switched; wherein, the third operation is a drag operation triggered by the user on a control between the smart recommendation area and the keyboard area, or the third operation is a drag operation triggered by the user on a control below the keyboard area. For example, refer to... Figure 6 When an electronic device is in portrait mode, the virtual keyboard displayed includes a keyboard area and a smart recommendation area. Users can drag upwards from the controls below the keyboard area to switch between displaying the keyboard and touch areas. For example, see [reference needed]. Figure 7 When the electronic device is in landscape mode, the virtual keyboard displayed on the electronic device includes a keyboard area and a smart recommendation area. Users can trigger a left-drag operation on the control between the keyboard area and the smart recommendation area, and the electronic device switches the display of the virtual keyboard including the keyboard area and the touch area.

[0118] In one optional implementation, after switching the display of a virtual keyboard including the keyboard area and the touch area, in response to a fourth user operation, switching the display of a virtual keyboard including a handwriting area; wherein the handwriting area is used to receive the user's handwriting input; the fourth operation is a two-finger spread operation triggered by the user in the touch area, or a drag operation triggered by the user on a control between the keyboard area and the touch area. For example, see reference... Figure 9When an electronic device is in portrait mode, the virtual keyboard displayed includes a keyboard area and a touch area. When the user triggers a two-finger spread gesture in the touch area, the electronic device switches between displaying the keyboard area and the handwriting area of ​​the virtual keyboard. For example, see reference... Figure 11 When the electronic device is in landscape mode, the virtual keyboard displayed on the electronic device includes a keyboard area and a touch area. When the user triggers a left drag operation on the control between the keyboard area and the touch area, the electronic device switches to displaying a virtual keyboard that includes a handwriting area.

[0119] In one optional implementation, the virtual keyboard including the handwriting area further includes the keyboard area. After switching the display of the virtual keyboard including the handwriting area, in response to a fifth operation by the user, the keyboard area is hidden and the size of the handwriting area is adjusted; wherein, the fifth operation is a drag operation triggered by the user on a control between the handwriting area and the keyboard area. For example, see reference... Figure 10 After the electronic device displays a virtual keyboard that includes a keyboard area and a handwriting area, the user can trigger an upward drag operation on the control between the keyboard area and the handwriting area. The electronic device hides the keyboard area and displays a larger handwriting area.

[0120] In one optional implementation, after switching the display of the virtual keyboard including the handwriting area, in response to a sixth operation by the user, the display of the virtual keyboard including the keyboard area and the touch area is switched; wherein, the sixth operation is a two-finger pinch operation triggered by the user in the handwriting area; or the sixth operation is a drag operation triggered by the user on a control on the left side of the handwriting area. For example, see reference... Figure 12 When an electronic device is in portrait mode, the virtual keyboard displayed includes a keyboard area and a handwriting area. When the user triggers a two-finger pinch gesture in the handwriting area, the electronic device can switch between displaying the keyboard area and the touch area of ​​the virtual keyboard. For example, see reference... Figure 13 When the electronic device is in landscape mode, it displays a virtual keyboard including a handwriting area. When the user drags the control on the left side of the handwriting area to the right, the electronic device switches between displaying a virtual keyboard including a keyboard area and a touch area.

[0121] Based on the above embodiments, this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the electronic device in the methods described in the embodiments of this application. For example, [the following is an example of implementation]. Figure 14 The steps performed by the electronic device in the illustrated embodiment. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementation.

[0122] Based on the above embodiments, this application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions. When the electronic device is running, the at least one processor executes the functions performed by the electronic device in the various methods described in the embodiments of this application. For example, when executing... Figure 14 The steps performed by the electronic device in the illustrated embodiment.

[0123] Based on the above embodiments, this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the methods described in the embodiments of this application.

[0124] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.

[0125] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.

[0126] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices.

[0127] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0128] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0129] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0130] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0131] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for displaying a virtual keyboard, characterized in that, Applied to electronic devices, the method includes: Displays a virtual keyboard including a keypad area and a touchpad area; In response to the user's first operation, the virtual keyboard, including a keyboard area and a smart recommendation area, is switched and displayed. The first operation is a drag operation triggered by the user on the control between the keyboard area and the touch area. The smart recommendation area is used to display at least one recommended item.

2. The method as described in claim 1, characterized in that, The at least one recommended item displayed in the intelligent recommendation area includes at least one of the following: application icon, folder, application component, and service card.

3. The method as described in claim 1 or 2, characterized in that, The at least one recommended item displayed in the intelligent recommendation area is either pre-configured by the system, user-defined, or determined based on user habits.

4. The method according to any one of claims 1-3, characterized in that, The intelligent recommendation area includes multiple pages of recommended content; After switching the display of the virtual keyboard, which includes the keyboard area and the smart recommendation area, the method further includes: In response to the user's second action, the page displayed in the intelligent recommendation area is switched.

5. The method according to any one of claims 1-4, characterized in that, After switching the display of the virtual keyboard, which includes the keyboard area and the smart recommendation area, the method further includes: In response to a third user action, the display of a virtual keyboard including the keyboard area and the touch area is switched; wherein the third user action is a drag operation triggered by the user on a control between the smart recommendation area and the keyboard area, or the third user action is a drag operation triggered by the user on a control below the keyboard area.

6. The method as described in claim 5, characterized in that, After switching the display of the virtual keyboard, which includes the keyboard area and the touch area, the method further includes: In response to the user's fourth operation, the display of a virtual keyboard including a handwriting area is switched; wherein the handwriting area is used to receive the user's handwriting input; the fourth operation is a two-finger spread operation triggered by the user in the touch area, or the fourth operation is a drag operation triggered by the user on a control between the keyboard area and the touch area.

7. The method as described in claim 6, characterized in that, The virtual keyboard including the handwriting area also includes the keyboard area. After switching the display of the virtual keyboard including the handwriting area, the method further includes: In response to the user's fifth operation, the keyboard area is hidden and the size of the handwriting area is adjusted; wherein, the fifth operation is a drag operation triggered by the user on a control between the handwriting area and the keyboard area.

8. The method as described in claim 6 or 7, characterized in that, After switching the display to include a virtual keyboard with a handwriting area, the method further includes: In response to the user's sixth operation, the display of a virtual keyboard including the keyboard area and the touch area is switched; wherein, the sixth operation is a two-finger pinch operation triggered by the user in the handwriting area; or the sixth operation is a drag operation triggered by the user on the control on the left side of the handwriting area.

9. The method according to any one of claims 1-8, characterized in that, The electronic device includes a foldable display screen.

10. The method as described in claim 9, characterized in that, When the electronic device is in portrait mode, the virtual keyboard is located in the lower half of the display screen in the folded state, or the virtual keyboard is located in the lower half of the display screen in the unfolded state. The keyboard area of ​​the virtual keyboard is located above the touch area, or the keyboard area of ​​the virtual keyboard is located below the smart recommendation area, or the keyboard area of ​​the virtual keyboard is located above the handwriting area. When the electronic device is in landscape mode, the virtual keyboard is located in the lower half of the unfolded display screen, with the keyboard area of ​​the virtual keyboard located to the left of the touch area, or the keyboard area of ​​the virtual keyboard located to the right of the smart recommendation area.

11. A method for displaying a virtual keyboard, characterized in that, Applied to electronic devices, the method includes: Displays a virtual keyboard including a keypad area and a touchpad area; In response to a fourth user action, the display of a virtual keyboard including a handwriting area is switched; wherein the handwriting area is used to receive the user's handwriting input; the fourth action is either a two-finger spread operation triggered by the user in the touch area, or a drag operation triggered by the user on a control between the keyboard area and the touch area.

12. The method as described in claim 11, characterized in that, The virtual keyboard including the handwriting area also includes the keyboard area. After switching the display of the virtual keyboard including the handwriting area, the method further includes: In response to the user's fifth operation, the keyboard area is hidden and the size of the handwriting area is adjusted; wherein, the fifth operation is a drag operation triggered by the user on a control between the handwriting area and the keyboard area.

13. The method as described in claim 11 or 12, characterized in that, After switching the display to include a virtual keyboard with a handwriting area, the method further includes: In response to the user's sixth operation, the display of a virtual keyboard including the keyboard area and the touch area is switched; wherein, the sixth operation is a two-finger pinch operation triggered by the user in the handwriting area; or the sixth operation is a drag operation triggered by the user on the control on the left side of the handwriting area.

14. The method according to any one of claims 11-13, characterized in that, The electronic device includes a foldable display screen.

15. The method as described in claim 14, characterized in that, When the electronic device is in portrait mode, the virtual keyboard is located in the lower half of the display screen in the folded state, or the virtual keyboard is located in the lower half of the display screen in the unfolded state, and the keyboard area of ​​the virtual keyboard is located above the touch area, or the keyboard area of ​​the virtual keyboard is located above the handwriting area. When the electronic device is in landscape mode, the virtual keyboard is located in the lower half of the display screen in the unfolded state, and the keyboard area of ​​the virtual keyboard is located to the left of the touch area.

16. An electronic device, characterized in that, The method includes at least one processor coupled to at least one memory, the at least one processor being configured to read a computer program stored in the at least one memory to perform the method as described in any one of claims 1-10, or to perform the method as described in any one of claims 11-15.

17. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-10, or the method as described in any one of claims 11-15.

18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-10, or the method as described in any one of claims 11-15.