Method, device and equipment for custom arrangement of virtual keyboard and readable storage medium

By monitoring user drag-and-drop information and adjusting the virtual keyboard layout, the inconvenience caused by a fixed virtual keyboard layout is solved, achieving the flexibility and efficient input of a custom layout.

CN120909490APending Publication Date: 2025-11-07SHANGHAI DROI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510042864.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

The existing virtual keyboard layout is fixed, and users cannot customize the layout according to their personal preferences and usage habits, resulting in a poor user experience when frequently entering specific characters or symbols.

Method used

By monitoring user dragging information on the screen, the default layout of the virtual keyboard is adjusted, a custom layout is obtained to achieve the target layout, and it is stored in the local database for future use, or the default layout is restored when there is no operation.

Benefits of technology

It enables flexibility in customizing the virtual keyboard layout, improves the efficiency of users inputting specific characters or symbols, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120909490A_ABST
    Figure CN120909490A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device and equipment for custom arrangement of a virtual keyboard and a readable storage medium, the method comprises the following steps: initializing a default layout of the virtual keyboard, the default layout comprising key positions and specifications of the virtual keyboard; dragging information of a user on a terminal screen is obtained, and the dragging information comprises position change information of the key; and updating the default layout according to the dragging information to obtain a target layout and displaying the target layout on a terminal screen. Through the method, the effect of custom arrangement of the virtual keyboard can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of virtual rendering, in particular to a method and device for customizing the arrangement of a virtual keyboard, and a readable storage medium. BACKGROUND

[0002] At present, the existing virtual keyboard usually has a fixed layout, and the user cannot customize the arrangement of the keys according to personal preferences and use habits. Only by adapting to the fixed keyboard layout can the user carry out daily work and life.

[0003] However, such a fixed layout limits the user's experience to some extent, especially in scenarios where specific characters or symbols need to be frequently input, the positions of the keys of these characters and symbols cause the user to be unable to quickly press the keys.

[0004] Therefore, how to realize the custom arrangement of the virtual keyboard is a technical problem to be solved. SUMMARY

[0005] The purpose of the embodiments of the present application is to provide a method for customizing the arrangement of a virtual keyboard. The technical solutions of the embodiments of the present application can achieve the effect of customizing the arrangement of a virtual keyboard.

[0006] In a first aspect, the embodiments of the present application provide a method for customizing the arrangement of a virtual keyboard, applied to a mobile intelligent terminal operating system, comprising: initializing a default layout of a virtual keyboard, wherein the default layout comprises the positions and specifications of the keys of the virtual keyboard; obtaining drag information of a user on a terminal screen, wherein the drag information comprises position change information of the keys; updating the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen.

[0007] In the above embodiments, the present application can adjust the default layout of the virtual keyboard by monitoring the drag information of the user on the screen on the keys of the virtual keyboard, and can obtain the target layout by customizing the arrangement.

[0008] In some embodiments, after updating the default layout according to the drag information to obtain the target layout and displaying the target layout on the terminal screen, the method further comprises: storing data information corresponding to the target layout in a local database, so as to obtain and apply the data information stored in the local database when initializing the layout of the virtual keyboard next time.

[0009] In the above embodiments, the present application can store the layout information of the custom-arranged virtual keyboard in the local database, and can directly obtain and apply the target layout next time.

[0010] In some embodiments, after the target layout is obtained by updating the default layout according to the dragging information and displayed on the terminal screen, the method further comprises: when the user clicks an operation of restoring the default layout or when the user has no operation within a preset time, restoring the target layout of the virtual keyboard to the default layout.

[0011] In the above embodiments, the virtual keyboard can be automatically restored to the default layout when the user clicks the operation of restoring the default layout or when the user has no operation within a preset time, so as to facilitate other people to use.

[0012] In some embodiments, the dragging information of the user on the terminal screen is obtained by: calling a system listener through a system interface; and listening to the long-press operation of the user on the terminal screen and the dragging information of the virtual keyboard before and after the long-press operation through the system listener.

[0013] In the above embodiments, the user's operation on the screen can be listened to by setting the listener, and the dragging information can be accurately obtained.

[0014] In some embodiments, the dragging information of the user on the terminal screen is obtained by: determining whether the user has pressed a key for more than a preset time; and when it is determined that the user has pressed the key for more than the preset time, determining that the user is performing a long-press operation and obtaining the dragging information of the key during the long-press operation.

[0015] In the above embodiments, when the user stays for more than a preset time, it is considered that the user has performed a dragging operation, and the dragging information during the dragging process can be monitored.

[0016] In some embodiments, the target layout is obtained by updating the default layout according to the dragging information and displayed on the terminal screen, comprising: updating the layout information of the default layout in which the keys have changed according to the dragging information, to obtain the target layout; and redrawing the virtual keyboard according to the target layout, to obtain the target virtual keyboard.

[0017] In the above embodiments, the target virtual keyboard can be redrawn after the default layout is updated, so as to display the virtual keyboard after the custom layout for the user in real time.

[0018] In some embodiments, the dragging information of the user on the terminal screen is obtained by: obtaining touch information when the user touches the virtual keyboard, to obtain the dragging information; or obtaining keyboard adjustment information input by the user manually, to obtain the dragging information.

[0019] In the above embodiments, the dragging information can be obtained by monitoring the information of the user touching the screen, or the user directly inputting the related information of modifying the layout.

[0020] In a second aspect, the embodiments of the present application provide a device for customizing a virtual keyboard, comprising:

[0021] an initialization module, configured to initialize a default layout of the virtual keyboard, wherein the default layout comprises positions and specifications of keys of the virtual keyboard;

[0022] an acquisition module, configured to acquire drag information of the user on the terminal screen, wherein the drag information comprises position change information of the keys;

[0023] an arrangement module, configured to update the default layout according to the drag information, obtain a target layout, and display the target layout on the terminal screen.

[0024] Optionally, the apparatus further comprises:

[0025] a storage module, configured to, after the arrangement module updates the default layout according to the drag information, obtains the target layout, and displays the target layout on the terminal screen, store data information corresponding to the target layout in a local database, so as to acquire and apply the data information stored in the local database when initializing the layout of the virtual keyboard next time.

[0026] Optionally, the apparatus further comprises:

[0027] a recovery module, configured to, after the arrangement module updates the default layout according to the drag information, obtains the target layout, and displays the target layout on the terminal screen, acquire an operation of the user clicking to recover the default layout or a situation that the user has no operation within a preset time, and recover the target layout of the virtual keyboard to the default layout.

[0028] Optionally, the acquisition module is specifically configured to:

[0029] invoke a system listener through a system interface;

[0030] listen to a long-press operation of the user on the terminal screen and drag information of the virtual keyboard before and after the long-press operation through the system listener.

[0031] Optionally, the acquisition module is specifically configured to:

[0032] determine whether the user long-presses a key for more than a preset time;

[0033] when it is determined that the user long-presses a key for more than the preset time, determine that the user is performing a long-press operation, and acquire drag information of the key during the long-press operation.

[0034] Optionally, the arrangement module is specifically configured to:

[0035] update layout information of the default layout in which the keys change according to the drag information, to obtain the target layout;

[0036] redraw the virtual keyboard according to the target layout, to obtain a target virtual keyboard.

[0037] Optionally, the acquisition module is specifically configured to:

[0038] obtaining touch information when the user touches the virtual keyboard, to obtain the drag information;

[0039] or

[0040] obtaining keyboard adjustment information input by the user manually, to obtain the drag information.

[0041] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory storing computer readable instructions, when the computer readable instructions are executed by the processor, running steps in the method provided in the first aspect.

[0042] In a fourth aspect, an embodiment of the present application provides a readable storage medium, storing a computer program, when the computer program is executed by a processor, running steps in the method provided in the first aspect.

[0043] Other features and advantages of the present application will be described in the following description, and, in part, will become apparent to those skilled in the art from the description, or be learned from practice of the present application. The purposes and other advantages of the present application can be realized and obtained by the structure particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be considered as a limitation to the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0045] Figure 1 A flow chart of a method for customizing arrangement of a virtual keyboard provided by an embodiment of the present application;

[0046] Figure 2 A flow chart of an implementation method for customizing arrangement of a virtual keyboard provided by an embodiment of the present application;

[0047] Figure 3 A schematic block diagram of an apparatus for customizing arrangement of a virtual keyboard provided by an embodiment of the present application;

[0048] Figure 4 A structural schematic diagram of an apparatus for customizing arrangement of a virtual keyboard provided by an embodiment of the present application. DETAILED DESCRIPTION

[0049] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0050] It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once an item is defined in one drawing, it need not be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", and the like are only used to distinguish description, and cannot be understood as indicating or implying relative importance.

[0051] The present application is applied to the scene of customizing the layout of a virtual keyboard, and a specific scene is adjusting a default layout and redrawing a target layout for a user to use by monitoring relevant information of the user dragging a virtual keyboard key on a screen.

[0052] At present, an existing virtual keyboard usually has a fixed layout, and a user cannot customize the arrangement of keys according to personal preferences and use habits. Only by adapting to the fixed keyboard layout can the user perform daily work and life. However, this fixed layout limits the user experience to a certain extent, especially in a scenario where specific characters or symbols need to be frequently input, the positions of the keys of these characters and symbols cause the user to be unable to quickly press the keys.

[0053] To this end, the present application initializes a default layout of a virtual keyboard through a mobile intelligent terminal operating system, wherein the default layout includes the positions and specifications of the keys of the virtual keyboard; obtains drag information of the user on the terminal screen, wherein the drag information includes position change information of the keys; and updates the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen. By monitoring the drag information of the user on the virtual keyboard keys on the screen, the default layout of the virtual keyboard is adjusted, and a target layout can be obtained by customizing the arrangement.

[0054] In the embodiments of the present application, the execution subject can be a customizing arrangement virtual keyboard device in a customizing arrangement virtual keyboard system, and in actual application, the customizing arrangement virtual keyboard device can be an electronic device such as a terminal device and a server, which is not limited herein.

[0055] The following will be described in combination with Figure 1The method for customizing the arrangement of a virtual keyboard according to the embodiments of the present application is described in detail.

[0056] Referring to Figure 1 , Figure 1 A flowchart of the method for customizing the arrangement of a virtual keyboard according to the embodiments of the present application is applied to a mobile intelligent terminal operating system, such as Figure 1 The method for customizing the arrangement of a virtual keyboard includes the following steps.

[0057] Step 110: initializing a default layout of a virtual keyboard.

[0058] The default layout includes the positions and specifications of the keys of the virtual keyboard, and can also include code configuration information of the layout, etc. The default layout can be a fixed layout, for example, a QWERTY layout. Initializing the default layout of the virtual keyboard includes starting the virtual keyboard application on the device. The positions and sizes of all the keys of the virtual keyboard are initialized.

[0059] Optionally, initializing the default layout of the virtual keyboard can initialize the relevant code data of the fixed layout stored by the operating system to draw the virtual keyboard image of the default layout.

[0060] The relevant code data can be written in advance by relevant personnel or downloaded from the system.

[0061] Step 120: obtaining the drag information of a user on the terminal screen.

[0062] The drag information includes the position change information of the keys. The position change information includes the initial coordinate information and posture information of each key of the virtual keyboard, and also includes the final coordinate information and posture information of each key of the virtual keyboard.

[0063] In some embodiments of the present application, obtaining the drag information of a user on the terminal screen includes: calling a system listener through a system interface; and listening to the long press operation of the user on the terminal screen and the drag information of the virtual keyboard before and after the long press operation through the system listener.

[0064] In the above process, the present application can accurately obtain the drag information by setting the listener to listen to the operation of the user's hand on the screen.

[0065] The long press operation indicates some operation information after the user touches the screen for a preset time. The preset time can be set according to requirements, for example, 1 s.

[0066] In some embodiments of the present application, the dragging information of the user on the terminal screen is obtained, including: determining whether the user presses a key for more than a preset time; when it is determined that the user presses a key for more than a preset time, it is determined that the user is performing a long-press operation, and the dragging information of the key during the long-press operation is obtained.

[0067] In the above process, when the user stays for more than a preset time, it is considered that the user performs a dragging operation, and the dragging information during the dragging process can be monitored.

[0068] The preset time can be set according to requirements.

[0069] In some embodiments of the present application, the dragging information of the user on the terminal screen is obtained, including: obtaining touch information when the user touches the virtual keyboard to obtain the dragging information; or obtaining keyboard adjustment information input by the user to obtain the dragging information.

[0070] In the above process, the dragging information can be obtained by monitoring the information of the user touching the screen, or the user directly inputs the related information of modifying the layout.

[0071] The touch information includes the gesture action of the user after touching the screen. The dragging information can also be obtained from the virtual keyboard layout data stored in the local database.

[0072] Step 130: updating the default layout according to the dragging information to obtain a target layout and displaying the target layout on the terminal screen.

[0073] In some embodiments of the present application, the default layout is updated according to the dragging information to obtain a target layout and display the target layout on the terminal screen, including: updating the layout information of the default layout in which the key exists changes according to the dragging information to obtain a target layout; and redrawing the virtual keyboard according to the target layout to obtain a target virtual keyboard.

[0074] In the above process, the target virtual keyboard can be redrawn in real time after updating the default layout, and the virtual keyboard after the user customizes the layout can be displayed in real time.

[0075] The layout information includes the dragged key in the dragging information and the position change information corresponding to the key.

[0076] In some embodiments of the present application, after the default layout is updated according to the dragging information to obtain a target layout and display the target layout on the terminal screen, Figure 1 The method also includes: storing the data information corresponding to the target layout in the local database, so as to obtain and apply the data information stored in the local database when initializing the layout of the virtual keyboard next time.

[0077] In the above process, the layout information of the custom-arranged virtual keyboard can be stored locally, and the target layout can be directly obtained and applied next time.

[0078] In the above process, the x and y coordinates of each key can be obtained by traversing all the keys, and the coordinate information can be saved to the local database using SharedPreferences (storage class).

[0079] In some embodiments of the present application, after updating the default layout according to the drag information, obtaining the target layout, and displaying it on the terminal screen, Figure 1 The method also includes: obtaining the user's operation of clicking to restore the default layout or the user's inaction within a preset time, and restoring the target layout of the virtual keyboard to the default layout.

[0080] In the above process, the virtual keyboard can be automatically restored to the default layout when the default is clicked or no operation is performed within a preset time, so as to facilitate the use of others.

[0081] In the above Figure 1 In the above process, the default layout of the virtual keyboard is initialized by the mobile intelligent terminal operating system, wherein the default layout includes the key position and specification of the virtual keyboard; the drag information of the user on the terminal screen is obtained, wherein the drag information includes the position change information of the keys; and the default layout is updated according to the drag information to obtain the target layout and display it on the terminal screen. By monitoring the drag information of the user on the screen, the default layout of the virtual keyboard can be adjusted to obtain the target layout.

[0082] The following will be described in detail Figure 2 The implementation method of the custom-arranged virtual keyboard according to the embodiments of the present application will be described in detail.

[0083] Please refer to Figure 2 , Figure 2 A flowchart of the implementation method of the custom-arranged virtual keyboard according to the embodiments of the present application is shown in Figure 2 The implementation method of the custom-arranged virtual keyboard includes:

[0084] Step 210: confirming whether the user performs the drag key mode.

[0085] Specifically, the listener listens whether the user long-presses a key for more than a preset time, and if so, proceeds to step 220, otherwise, the process ends.

[0086] Step 220: recording the position change information of the currently dragged key.

[0087] Specifically, the position and posture change information of the user's dragged key is recorded.

[0088] Step 230: redraw the virtual keyboard according to the position change information to obtain a target virtual keyboard.

[0089] Specifically, update the position change information of the key layout information in the default layout information to obtain a target layout, and redraw the virtual keyboard according to the target layout to obtain a target virtual keyboard.

[0090] Step 240: save the layout information of the target virtual keyboard in a local database.

[0091] Specifically, save the layout information of the target virtual keyboard in a local database for direct calling in the next use.

[0092] Step 250: automatically restore the virtual keyboard to the default layout.

[0093] Specifically, when a preset time is reached without user touch operation or the user clicks to restore the default layout key, the target layout is restored to the default layout.

[0094] In addition, Figure 2 The specific methods and steps shown can be referred to Figure 1 The method shown, and will not be described in detail here.

[0095] The foregoing describes a method for customizing the arrangement of a virtual keyboard, and the following describes a device for customizing the arrangement of a virtual keyboard. Figures 1-2 The foregoing describes a method for customizing the arrangement of a virtual keyboard, and the following describes a device for customizing the arrangement of a virtual keyboard. Figures 3-4 The foregoing describes a method for customizing the arrangement of a virtual keyboard, and the following describes a device for customizing the arrangement of a virtual keyboard.

[0096] Please refer to Figure 3 , a schematic block diagram of a device 300 for customizing the arrangement of a virtual keyboard provided in an embodiment of the present application. The device 300 can be a module, a program segment, or code on an electronic device. The device 300 corresponds to the method embodiment described above and can perform each step involved in the method embodiment. The specific functions of the device 300 can be referred to the description below, and the detailed description is appropriately omitted here to avoid repetition. Figure 1 The method embodiment described above and can perform each step involved in the method embodiment. The specific functions of the device 300 can be referred to the description below, and the detailed description is appropriately omitted here to avoid repetition. Figure 1 The method embodiment described above and can perform each step involved in the method embodiment. The specific functions of the device 300 can be referred to the description below, and the detailed description is appropriately omitted here to avoid repetition.

[0097] Optionally, the device 300 includes:

[0098] An initialization module 310 is configured to initialize a default layout of a virtual keyboard, where the default layout includes the position and specifications of the keys of the virtual keyboard.

[0099] An acquisition module 320 is configured to acquire drag information of a user on a terminal screen, where the drag information includes position change information of the keys.

[0100] An arrangement module 330 is configured to update the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen.

[0101] Optionally, the device further comprises:

[0102] The storage module is configured to store the data information corresponding to the target layout in the local database after the arrangement module updates the default layout according to the drag information, obtains the target layout, and displays the target layout on the terminal screen, so as to obtain and apply the data information stored in the local database when the layout of the virtual keyboard is initialized next time.

[0103] Optionally, the device further comprises:

[0104] The recovery module is configured to recover the target layout of the virtual keyboard to the default layout when the arrangement module updates the default layout according to the drag information, obtains the target layout, and displays the target layout on the terminal screen, and the user clicks the operation of recovering the default layout or the user does not have any operation within the preset time.

[0105] Optionally, the obtaining module is specifically configured to:

[0106] The system listener is called through the system interface, and the long press operation of the user on the terminal screen and the drag information of the virtual keyboard before and after the long press operation are listened to through the system listener.

[0107] Optionally, the obtaining module is specifically configured to:

[0108] It is determined whether the user long-presses a key for more than a preset time; when it is determined that the user long-presses a key for more than a preset time, it is determined that the user is performing a long-press operation, and the drag information of the key during the long-press operation is obtained.

[0109] Optionally, the arrangement module is specifically configured to:

[0110] The layout information of the default layout in which the keys exist changes is updated according to the drag information, the target layout is obtained, and the virtual keyboard is redrawn according to the target layout, and the target virtual keyboard is obtained.

[0111] Optionally, the obtaining module is specifically configured to:

[0112] The touch information when the user touches the virtual keyboard is obtained, and the drag information is obtained; or the keyboard adjustment information input by the user manually is obtained, and the drag information is obtained.

[0113] Please refer to Figure 4 The device for customizing the layout of the virtual keyboard provided in the embodiments of the present application is a structural schematic block diagram, which can include a memory 410 and a processor 420. Optionally, the device can further include a communication interface 430 and a communication bus 440. The device corresponds to the method embodiments described above, and can execute Figure 1 the steps involved in the method embodiments, and the specific functions of the device can be referred to the description in the following. Figure 1 the steps involved in the method embodiments, and the specific functions of the device can be referred to the description in the following.

[0114] Specifically, the memory 410 is configured to store computer readable instructions.

[0115] The processor 420 is configured to process the computer readable instructions stored in the memory, and is capable of performing Figure 1 each step in the method.

[0116] The communication interface 430 is configured to communicate signaling or data with other node devices. For example, the communication interface 430 is configured to communicate with a server or a terminal, or communicate with other device nodes, and the embodiments of the present application are not limited thereto.

[0117] The communication bus 440 is configured to realize direct connection communication among the above components.

[0118] In the embodiments of the present application, the communication interface 430 of the device is configured to communicate signaling or data with other node devices. The memory 410 can be a high-speed RAM memory, or a non-volatile memory such as at least one disk memory. The memory 410 can optionally be at least one storage device located away from the aforementioned processor. The memory 410 stores computer readable instructions, and when the computer readable instructions are executed by the processor 420, the electronic device performs the method process as described above. Figure 1 The processor 420 can be used in the apparatus 300, and is configured to perform the functions in the present application. For example, the processor 420 described above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and the embodiments of the present application are not limited thereto.

[0119] The embodiments of the present application further provide a readable storage medium, and when the computer program is executed by the processor, the method process performed by the electronic device in the method embodiment as described above is executed. Figure 1 The embodiments of the present application further provide a readable storage medium, and when the computer program is executed by the processor, the method process performed by the electronic device in the method embodiment as described above is executed.

[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the apparatus described above can refer to the corresponding process in the foregoing method, and will not be described in detail herein.

[0121] In conclusion, the embodiment of the present application provides a method, device and equipment for customizing the arrangement of a virtual keyboard, and a readable storage medium. The method comprises initializing a default layout of the virtual keyboard, wherein the default layout comprises the position and specification of the keys of the virtual keyboard; obtaining drag information of a user on a terminal screen, wherein the drag information comprises position change information of the keys; updating the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen. The method can achieve the effect of customizing the arrangement of the virtual keyboard.

[0122] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are only illustrative, for example, the flowcharts and block diagrams in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, program segment or part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementation manners, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0123] In addition, the functional modules in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0124] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0125] The above description is only the specific implementation of this application, and is not used to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection scope of this application. It should be noted that similar reference numbers and letters represent similar items in the following drawings, and thus, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0126] The above description is only the specific implementation of this application, and is not used to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection scope of this application. It should be noted that similar reference numbers and letters represent similar items in the following drawings, and thus, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0127] It should be noted that, in this document, the terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply any actual such relationship or order between these entities or operations. Also, the terms “include”, “contain” or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement “including a” does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for customizing an arrangement of a virtual keyboard, the method comprising: The application is applied to a mobile intelligent terminal operating system, and comprises the following steps: initializing a default layout of a virtual keyboard, wherein the default layout comprises positions and specifications of keys of the virtual keyboard; acquiring drag information of a user on a terminal screen, wherein the drag information comprises position change information of the keys; updating the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen.

2. The method of claim 1, wherein, After the step of updating the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen, the method further comprises the following steps: storing data information corresponding to the target layout in a local database, so as to acquire and apply the data information stored in the local database when initializing the layout of the virtual keyboard next time.

3. The method according to claim 1 or 2, characterized in that, After the step of updating the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen, the method further comprises the following steps: when an operation of the user for restoring the default layout or a preset time without any operation of the user is acquired, restoring the target layout of the virtual keyboard to the default layout.

4. The method according to claim 1 or 2, characterized in that, The step of acquiring the drag information of the user on the terminal screen comprises the following steps: calling a system listener through a system interface; listening to a long-press operation of the user on the terminal screen and the drag information of the virtual keyboard before and after the long-press operation through the system listener.

5. The method according to claim 1 or 2, characterized in that, The step of acquiring the drag information of the user on the terminal screen comprises the following steps: determining whether the user long-presses a key for more than a preset time; when it is determined that the user long-presses a key for more than the preset time, it is determined that the user is performing a long-press operation, and the drag information of the keys in the long-press operation process is acquired.

6. The method of claim 1 or 2, wherein, The step of updating the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen comprises the following steps: updating layout information of the default layout in which the keys change according to the drag information to obtain the target layout; redrawing the virtual keyboard according to the target layout to obtain a target virtual keyboard.

7. The method according to claim 1 or 2, characterized in that, The step of acquiring the drag information of the user on the terminal screen comprises the following steps: acquiring touch information when the user touches the virtual keyboard to obtain the drag information; or acquiring keyboard adjustment information input by the user manually to obtain the drag information.

8. An apparatus for customizing an arrangement of a virtual keyboard, the apparatus comprising: The application comprises the following steps: an initializing module is configured to initialize a default layout of a virtual keyboard, wherein the default layout comprises positions and specifications of keys of the virtual keyboard; an acquiring module is configured to acquire drag information of a user on a terminal screen, wherein the drag information comprises position change information of the keys; an arrangement module is configured to update the default layout according to the drag information to obtain a target layout and display the target layout on the terminal screen.

9. An electronic device, comprising: The application comprises the following steps: a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions are executed by the processor to execute steps in the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The application comprises the following steps: a computer program, when the computer program is executed on a computer, the computer program enables the computer to execute the method according to any one of claims 1-7.