Input method window display method and device, equipment and storage medium
By adding a raised area at the bottom of the soft keyboard area in the input method window and adjusting its layout, the problem of input discomfort caused by the shrinking of the terminal screen bezels was solved, improving the comfort and efficiency of the input method.
Patent Information
- Application Number
- CN201910769660.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-20
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2039-08-20
AI Technical Summary
With the development of full-screen technology, the distance between the bezels of the terminal screen has been reduced. Users need to hold the bottom of the terminal to operate the input method, resulting in an uncomfortable input experience.
A raised area is placed at the bottom of the soft keyboard area in the input method window. The soft keyboard control area is adjusted to a suitable height for operation. The layout information is intercepted and adjusted through a Hook mechanism to display the target input method window. Shortcut buttons are added to the raised area.
It achieves a comfortable finger touch range and comfortable grip on the device when users are typing, conforms to ergonomics, and improves the user experience of the input method.
Smart Images

Figure CN110531872B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of terminals, and particularly relates to an input method window display method and device, a terminal and a storage medium. BACKGROUND
[0002] With the development of input methods, input methods have become an indispensable tool in people's lives. Input methods are not only a basic tool for people to communicate with each other through terminals, but also increasingly develop into a communication medium for human-computer interaction. At present, when an input method window is displayed, a soft keyboard region is often displayed at the bottom of a screen. However, the applicant finds that, with the development of full-screen technology and terminal technology, the distance between a screen frame and a terminal frame is becoming smaller and smaller, and the distance between the soft keyboard region and the bottom of the terminal is very close. With the terminal screen becoming larger and larger, when a user holds the terminal and uses the input method to input content, the user needs to hold the bottom of the terminal to operate, so that the user cannot obtain a more comfortable input experience. SUMMARY
[0003] To overcome the problems in the related art, the present disclosure provides an input method window display method, device, terminal and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, an input method window display method is provided, and the method comprises the following steps.
[0005] displaying a target input method window; the target input method window comprises a soft keyboard region and a raised region, and the raised region is located at the bottom of the soft keyboard region and is used to raise the soft keyboard region.
[0006] In an optional embodiment, the target input method window is an input method window corresponding to an input method application.
[0007] In an optional embodiment, the target input method window is obtained by changing the layout of an original input method window corresponding to an input method application, so that a raised region with a specified height is added at the bottom of the soft keyboard region of the original input method window.
[0008] In an optional embodiment, the process of obtaining the raised region comprises the following steps.
[0009] obtaining a specified height;
[0010] if the original input method window comprises a blank layout region and a soft keyboard region, adjusting the height of the blank layout region to add a raised region with a specified height at the bottom of the soft keyboard region of the original input method window, and the blank layout region is a region between the top of the soft keyboard region and the top of the original input method window.
[0011] In an optional embodiment, the method is applied to a smart terminal, and the specified height is determined based on a preset comfortable operation height and a terminal lower margin, the preset comfortable operation height is a preset distance between a bottom of a soft keyboard area and a lower frame of a body, and the terminal lower margin is a distance between a lower frame of a screen and a lower frame of the body of the smart terminal.
[0012] Alternatively, the specified height is determined based on a model of the smart terminal or a screen size of the smart terminal.
[0013] In an optional embodiment, the process of changing the layout of the original input method window of the input method application includes:
[0014] When the window layout module initializes the layout of the original input method window of the input method application is listened to in the application framework layer, the layout information sent by the window layout module to the window display module is intercepted through a Hook mechanism, the layout information is adjusted by taking the raised area with the specified height added to the bottom of the soft keyboard area of the original input method window as a target, and the adjusted layout information is sent to the window display module to display the target input method window with the changed layout.
[0015] In an optional embodiment, the raised area includes a specified shortcut button set, and the shortcut button set includes one or more input-related shortcut buttons.
[0016] In an optional embodiment, the specified shortcut button set includes one or more specified shortcut buttons in a voice input button, a clipboard button, a commonly used word button, an input method switching button, and an input method setting button.
[0017] According to a second aspect of the embodiments of the present disclosure, an input method window display device is provided, and the device includes:
[0018] A window display module is configured to display a target input method window if a condition for displaying the input method window is met, the target input method window includes a soft keyboard area and a raised area, and the raised area is located at the bottom of the soft keyboard area and is used to raise the soft keyboard area.
[0019] In an optional embodiment, the target input method window is an input method window corresponding to an input method application, or the target input method window is obtained by changing the layout of an original input method window of the input method application by taking a raised area with a specified height added to the bottom of the soft keyboard area of the original input method window as a target.
[0020] In an optional embodiment, the device further includes a layout changing module, and the process of the layout changing module of increasing the raised area includes:
[0021] obtaining a specified height;
[0022] If the original input method window includes a blank layout area and a soft keyboard area, a height of the blank layout area is adjusted to add a raised area with a height of the specified height at the bottom of the soft keyboard area of the original input method window, the blank layout area being an area between the top of the soft keyboard area and the top of the original input method window.
[0023] In an optional embodiment, the device is applied to a smart terminal, and the specified height is determined based on a preset comfortable operation height and a terminal lower margin, the preset comfortable operation height being a preset distance between the bottom of the soft keyboard area and the lower frame of the body, and the terminal lower margin being a distance between the lower frame of the screen and the lower frame of the body of the smart terminal.
[0024] Alternatively, the specified height is determined based on the model of the smart terminal or the screen size of the smart terminal.
[0025] In an optional embodiment, the device further includes a layout changing module configured to:
[0026] When the application framework layer listens to the original input method window of the input method application being initialized and laid out by the window layout module, the layout information sent by the window layout module to the window display module is intercepted through a Hook mechanism, and the layout information is adjusted by adding a raised area with a height of the specified height at the bottom of the soft keyboard area of the original input method window as a target, the adjusted layout information is sent to the window display module, and the target input method window with the changed layout is displayed.
[0027] In an optional embodiment, the raised area includes a specified shortcut button set, and the shortcut button set includes one or more input-related shortcut buttons.
[0028] In an optional embodiment, the specified shortcut button set includes one or more of a voice input button, a clipboard button, a commonly used phrase button, an input method switching button, and an input method setting button.
[0029] According to a third aspect of the embodiments of the present disclosure, a terminal device is provided, including a processor, a memory for storing processor-executable instructions, and the processor is configured to implement the steps of the input method window display method described in any of the above.
[0030] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, and the program is executed by a processor to implement the steps of the input method window display method described in any of the above.
[0031] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects:
[0032] The embodiment of the present disclosure can adjust the soft keyboard operation area to a height suitable for operation by arranging a pad area at the bottom of the soft keyboard area of the input method window, so that the user can touch the range of the finger and hold the terminal more comfortably and ergonomically when inputting content, and achieve a comfortable input experience.
[0033] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0034] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0035] Figure 1 is a schematic diagram of the framework of an input method system in the prior art.
[0036] Figure 2A is a flowchart of an input method window display method according to an exemplary embodiment of the present disclosure.
[0037] Figure 2B is a schematic diagram of a pad area according to an exemplary embodiment of the present disclosure.
[0038] Figure 2C is another schematic diagram of a pad area according to an exemplary embodiment of the present disclosure.
[0039] Figure 2D is a schematic diagram of an interface after a shortcut button is triggered according to an exemplary embodiment of the present disclosure.
[0040] Figure 3 is a flowchart of a method for changing the layout of an input method window according to an exemplary embodiment of the present disclosure.
[0041] Figure 4A is a schematic diagram of the height of a blank layout area and the height of a soft keyboard area in the prior art.
[0042] Figure 4B is a schematic diagram of a preset comfortable operation height and a terminal lower margin according to an exemplary embodiment of the present disclosure.
[0043] Figure 5 is a block diagram of an input method window display device according to an exemplary embodiment of the present disclosure.
[0044] Figure 6 is a block diagram of a device for input method window display or changing the layout of an input method window according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The description herein relates to the drawings, in which the same numbers represent the same or similar elements throughout several figures. The implementations described in the following exemplary embodiments are not meant to represent all implementations consistent with the present disclosure. Rather, they are merely examples that are consistent with some aspects of the present disclosure as detailed in the appended claims.
[0046] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0047] It will be understood that, although the terms first, second, third, etc. can be used herein to describe various information, these terms are not intended to denote a temporal or chronological order. Rather, these terms are used solely to distinguish different sets of information from one another. For example, a first information can be termed a second information, and similarly, a second information can be termed a first information without departing from the scope of the present disclosure. As used herein, the word "if' can be construed to mean "when" or "upon" or "in response to determining" depending on the context.
[0048] An input method is a tool that provides input function for other modules in the system. An input method can be regarded as a character generator that converts touch events or key events into other more abundant characters. For example, in an Android system, an input method can be installed, that is, the system can have multiple input methods (e.g., Sogou input method, Baidu input method), but only one of them is active. A user can switch between different input methods. Meanwhile, an input method can run in the form of a service. An input method can generally serve only one program at a time, and only the program running in the front end can receive the input data of the input method.
[0049] As Figure 1As shown, taking the Android system as an example, the overall framework of the input method system can include InputMethodManager in a program process, InputMethodManagerService in a system process, and InputMethodService in an input method process. InputMethodManagerService (also referred to as IMMS) is responsible for managing all input methods of the system, including input method service (InputMethodService, referred to as IMS) loading and switching. When a program obtains focus, InputMethodManager can notify InputMethodManagerService that it obtains focus and request to bind itself to the current input method. Meanwhile, when a view (such as EditorView) of the program that needs an input method obtains focus, InputMethodManager can request InputMethodManagerService to display the input method, and at this time, InputMethodManagerService can send the data communication interface of the requested EditText to the current input method and request to display the input method after receiving the request. After receiving the request, the input method can display its own input method window, and save the data structure of the target view at the same time, and when the user implements input, directly pass the characters to the corresponding View through the data communication interface of the view.
[0050] At present, when the input method window is displayed, the soft keyboard area is often displayed at the bottom of the screen. However, the applicant finds that, with the development of the full-screen technology, the distance between the screen frame and the terminal frame is getting smaller and smaller, and the distance between the soft keyboard area and the terminal bottom frame is very close. With the terminal screen getting larger and larger, when the user holds the terminal and uses the input method to input content, the user needs to hold the bottom of the terminal to operate, so that the user cannot obtain a more comfortable input experience.
[0051] The embodiment of the present disclosure provides a scheme capable of raising the soft keyboard area. By arranging a raising area at the bottom of the soft keyboard area of the input method window, the soft keyboard operation area is adjusted to a height suitable for operation, so that when the user inputs content, the touch range of the finger and the holding ability of the terminal can be more comfortable and ergonomic, and a comfortable input experience is achieved.
[0052] Next, the embodiment of the present disclosure will be described by way of example with reference to the accompanying drawings.
[0053] As shown, Figure 2A As shown, Figure 2A is a flowchart of an input method window display method according to an exemplary embodiment of the present disclosure, including the following steps:
[0054] In step 202, a target input method window is displayed; the target input method window includes a soft keyboard region and a raised region, and the raised region is located at the bottom of the soft keyboard region and is used to raise the soft keyboard region.
[0055] The method of the embodiments of the present disclosure can be used in a smart terminal, which can be a smart phone, a tablet computer, a PDA (Personal Digital Assistant), an e-book reader, a multimedia player, etc.
[0056] The target input method window can be displayed when a preset input method display condition is met. For example, a request to display the input method window can be received. In the case where the input method window needs to be displayed, the target input method window is displayed. The input method application can be software integrating one or more input methods such as voice, handwriting, pinyin, strokes, double pinyin, etc. The soft keyboard region referred to in the embodiments can be a keyboard region provided by the input method application, which is a control region for providing input information. For example, it can be a keyboard region occupying the bottom region of the screen in related technologies, and therefore can be referred to as a normal keyboard region / conventional keyboard region. For example, the soft keyboard region can include a pinyin 9-key, a pinyin 26-key, a 9-key for five-stroke input, a 26-key for five-stroke input, a stroke keyboard, a handwriting keyboard, a voice keyboard, etc. Figure 2B As shown in the figure, a soft keyboard region of a full keyboard is shown, and a user can perform input operations based on the buttons in the soft keyboard region.
[0057] Regarding the raised region, one of the purposes of setting the raised region is to increase the height of the soft keyboard region (input method keyboard control region) in the screen, so that the range of finger touch and the grip of the terminal can be more comfortable and ergonomic when the user inputs content using the soft keyboard. The raised region can be an extended region of the soft keyboard region, or can be an independent region. The background of the raised region can be the same as that of the soft keyboard region, or can be different. In the case where the background of the raised region is different from that of the soft keyboard region, the transparency of the raised region can be a specified transparency. In one example, the transparency can be 100%, i.e., the raised region is a transparent region, so that the user can see the information in the next layer window.
[0058] In one example, the raised region can be a blank region. As shown in the figure, Figure 2B Figure 2B is a raised region diagram according to an example embodiment of the present disclosure. In the diagram, the background of the raised region is the same as that of the soft keyboard region, so as to achieve uniformity with the original soft keyboard region style.
[0059] In order to make the pad area more valuable and bring more quick functions to the user, in another example, one or more specified quick buttons are included in the pad area. The specified quick button can be a quick control that provides a specified function. The specified quick button can be a pre-specified fixed quick button, or a quick button set according to the user's usage frequency or user settings. For example, the specified quick button can be set through the settings interface in the settings application. In an example, the specified quick button can be a quick button that is not in the soft keyboard area, i.e., different from the buttons in the soft keyboard area.
[0060] Regarding the specified quick button, in an example, it can include but is not limited to a voice input button, a clipboard button, a commonly used word button, and a switch input method button, etc. The number of specified quick buttons can be pre-configured. When the voice input button is triggered, the voice input service is quickly provided. When the clipboard button is triggered, one or more historical copy data can be displayed. For example, Figure 2C Figure 2C is another pad area schematic diagram according to an example embodiment of the present disclosure. In this example, an input method setting button and a voice input button can be included. As shown in Figure 2D is a quick button triggered interface schematic diagram according to an example embodiment of the present disclosure. In this schematic diagram, the content displayed after clicking the clipboard button is shown. The historical copy data can be sorted by copy time. The user can click one of the historical copy data to quickly paste the copy content.
[0061] Regarding the target input method window, in one embodiment, a new input method application is designed. For the layout of the input method application, the target input method window includes a soft keyboard area and a pad area, and the pad area is at the bottom of the soft keyboard area, thereby designing an input method application with a raised soft keyboard area to adjust the soft keyboard control area to a height suitable for operation, so that the user's finger touch range and the terminal holding ability can be more comfortable and ergonomic when inputting content, achieving a comfortable input experience.
[0062] In some application scenarios, one or more input method applications can be installed in the smart terminal, and the input method application to be started can be a system-level application or a third-party application, and it cannot be guaranteed that the input method application expected to be started by the user is the newly designed input method application. Therefore, in another example, a system-level input method soft keyboard area height enhancement scheme is also provided. On the basis of the original input method window of the input method application, a specified height pad area is added at the bottom of the soft keyboard area to obtain a target input method window.
[0063] In this embodiment, a new input method application does not need to be designed, and from the perspective of the system, the layout of the input method application to be started is changed, a target input method window is obtained by adding a specified height of a raised area at the bottom of the soft keyboard area of the original input method window corresponding to the input method application, the height of the input method keyboard is increased, and the experience of the user in operating the input method is improved.
[0064] Next, the scheme of increasing the height of the input method soft keyboard area at the system level is exemplarily described.
[0065] As shown in Figure 3 , Figure 3 is a flowchart of a method of changing the layout of an input method window according to an exemplary embodiment of the present disclosure, including the following steps:
[0066] In step 302, when the target input method window needs to be displayed, a layout of an original input method window corresponding to an input method application is changed by adding a specified height of a raised area at the bottom of a soft keyboard area of the original input method window, so as to display the target input method window by using the adjusted layout information.
[0067] In this embodiment, by changing the layout, a new input method application does not need to be designed, the height of the input method keyboard can be increased, the experience of the user in operating the input method can be improved, and the raised area can be added for different input method applications.
[0068] In one embodiment, the layout of the original input method window corresponding to the input method application can be changed by intercepting the layout information by using a Hook mechanism. Specifically, the layout of the original input method window corresponding to the input method application is changed by adding a specified height of a raised area at the bottom of a soft keyboard area of the original input method window, including:
[0069] When the window layout module initializes the layout of the original input method window of the input method application is listened to at the application framework layer, the layout information sent by the window layout module to the window display module is intercepted by using the Hook mechanism, the layout information is adjusted by adding a specified height of a raised area at the bottom of a soft keyboard area of the original input method window, the adjusted layout information is sent to the window display module, and the target input method window with the changed layout is displayed.
[0070] This embodiment realizes the display of the target input method window containing the raised area, so that when the user inputs content by using the input method, the touching range of the finger and the holding ability of the terminal can be more comfortable and ergonomic, the comfortable input experience is achieved, and different input method applications can be supported.
[0071] The embodiment can change the layout of the current input method application from the system level by using the Hook mechanism in the application framework layer. Hook can be translated as hook, which can integrate its own code into the process of the hooked program, and become a part of the target process. When the input method application is initialized, the layout information sent by the window layout module (such as the function module composed of window layout functions) to the window display module (such as the function module composed of window display functions) can be intercepted by the Hook mechanism, and the layout information is adjusted by adding a specified height of the raised area at the bottom of the soft keyboard area of the original input method window as the target, and the adjusted layout information is sent to the window display module, so as to display the target input method window containing the raised area, so that the user can use the input method to input content, and the touch range of the finger and the holding ability of the terminal can be more comfortable and ergonomic, and the comfortable input experience can be achieved, and the layout of different input methods is given uniform adaptation.
[0072] The embodiment of the present disclosure can be applied to various operating systems, such as Android system, IOS system, etc. Taking the Android system as an example, the Android system can include an application layer (Applications) and an application framework layer (Application Framework), and other layers are not discussed in the present disclosure. The Framework of Android is a layer directly below the application, called the application framework layer. This layer is the API framework used by the core application, which provides various APIs for the application layer, provides various components and services to support Android development, including ActivityManager, WindowManager, ViewSystem, etc.
[0073] The input method APP in the Android system needs to inherit the input method service InputMethodService, and the window layout function (such as initViews) in InputMethodService is used to initialize the input method layout when the input method is started. The embodiment of the present disclosure can intercept the layout information sent by the window layout function to the window display function by using the Hook mechanism, and adjust the layout information by adding a raised area with a specified height at the bottom of the soft keyboard area of the original input method window as the target. For example, the Hook mechanism is used in the Application Framework layer to add code at the end of the initViews method of InputMethodService to modify the layout to achieve adding the raised layout. Figure 1 For example, the code added by the Hook mechanism can be executed in the input method process, so as to realize the modification of the input method layout.
[0074] For how to add the specified height of the raised area, in one example, the obtaining process of the raised area can include:
[0075] obtaining the specified height;
[0076] If the original input method window includes a blank layout area and a soft keyboard area, the height of the blank layout area is adjusted to add a raised area with a specified height at the bottom of the soft keyboard area of the original input method window, and the blank layout area is the area between the top of the soft keyboard area and the top of the original input method window.
[0077] This embodiment can improve the efficiency of modification by adjusting the height of the blank layout area to add a raised area with a specified height at the bottom of the soft keyboard area of the original input method window.
[0078] Still taking the Android system as an example, in some scenarios, the original input method layout can be composed of a blank layout area (such as FullScreenArea) and a soft keyboard area (such as InputArea). As shown in Figure 4A , it is a schematic diagram of the height of the blank layout area and the height of the soft keyboard area in the prior art. In full-screen mode, the height of the blank layout area and the height of the soft keyboard area can add up to the screen height, and the blank layout area does not affect the display and touch operation of the underlying window by the user. The underlying window is the window of the application (such as the note application in Figure 4A ) using the input method application. The height of the blank layout area and the height of the soft keyboard area can be obtained and dynamically adjusted, and this embodiment can reset the height of FullScreenArea and InputArea according to the required height of the raised area, so that the raised area can be normally displayed. For example, the code added by the Hook mechanism can be used to calculate the height of the raised area that needs to be displayed according to the terminal lower margin, and after calculating the height, the height of the input method blank layout area (fullscreenArea) is adjusted to create display space for the raised layout.
[0079] It should be understood that other means can also be used to obtain the raised area, which will not be described here.
[0080] Regarding the specified height of the raised area, in one example, it could be a preset height at which the soft keyboard area is suitable for user operation. Furthermore, different screen sizes may correspond to different preset comfortable operating heights. Therefore, a mapping relationship between the specified height and screen size is pre-determined, and the specified height can be determined based on the screen size of the smart terminal. For example, the specified height for a terminal with a larger screen size can be greater than that for a terminal with a smaller screen size. In practical applications, the bottom margin of different smart terminals may differ; for example, the bottom margin of full-screen terminals and non-full-screen terminals differ. The bottom margin is the distance between the bottom edge of the screen and the bottom edge of the device body. Therefore, in another embodiment, a pre-configured correspondence between the model of the smart terminal and the specified height is established, and the specified height is determined based on the model of the smart terminal.
[0081] However, in reality, with the increasing number of smart terminals, it is difficult to list them all. Therefore, in another embodiment, the specified height can be determined based on a preset comfortable operating height and the bottom margin of the terminal. The preset comfortable operating height is the distance between the bottom of the preset soft keyboard area and the bottom edge of the device body, and the bottom margin of the terminal is the distance between the bottom edge of the screen and the bottom edge of the device body.
[0082] like Figure 4B The diagram illustrates a preset comfortable operating height and a bottom margin of the terminal according to an exemplary embodiment of this disclosure. The diagram shows the preset comfortable operating height and the bottom margin of the terminal. The preset comfortable operating height may be the same or different for different smart terminals. In one example, the preset comfortable operating height can be determined based on the height / size of the smart terminal. The bottom margin of the terminal can be determined based on terminal parameters, such as the bottom margin parameter included in some terminals, or it can be determined based on the body size and screen size.
[0083] For different smart devices with the same preset comfortable operating height, the raised area can be dynamically adjusted based on the bottom margin of the device. On devices with a smaller bottom margin, the raised area is higher; on devices with a larger bottom margin, the raised area is lower. This ensures that the distance from the bottom edge of the device to the input method area remains constant, achieving a unified style. This design can accommodate devices with significant differences in body height, even when the preset comfortable operating height may vary between different smart devices.
[0084] To maximize the value of the elevated area and provide users with more convenient functions, in one example, the elevated area includes a designated set of shortcut buttons. This set includes one or more designated shortcut buttons, particularly those related to input. These designated shortcut buttons can be shortcut controls that provide specific functions. They can be pre-defined, fixed shortcut buttons, or shortcut buttons based on user frequency or user settings. For example, designated shortcut buttons can include, but are not limited to, voice input buttons, clipboard buttons, frequently used phrase buttons, input method switching buttons, input method settings buttons, and other shortcut buttons, especially those designed to improve input efficiency. The number of designated shortcut buttons can be pre-configured.
[0085] Taking the Android system as an example, the code added through the Hook mechanism can be used to achieve the following: when adding a raised layout, a specified shortcut button will be added to the layout. For example, two buttons: a switch input method button and a clipboard button. After clicking the switch input method button, a pop-up window will appear allowing the user to select an input method. After clicking the clipboard button, a pop-up window will appear listing all or part of the content in the user's clipboard, which the user can then select and paste.
[0086] This embodiment adds a raised area at the bottom of the input method at the system level, making the user's finger reach and the grip of the terminal more comfortable and ergonomic when typing. By dynamically adjusting the raised area, the distance from the bottom edge of the terminal to the input area is made the same across all terminals, achieving a unified style and optimal input experience. Adding shortcut buttons to the raised area improves input efficiency.
[0087] It should be understood that the position of the input method window on the screen can also be adjusted so that the soft keyboard area in the input method window is at a comfortable height.
[0088] The various technical features in the above embodiments can be combined arbitrarily, as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, the arbitrary combination of various technical features in the above embodiments is also within the scope of this specification.
[0089] Corresponding to the aforementioned embodiments of the input method window display method and the method for changing the input method window layout, this disclosure also provides embodiments of the input method window display apparatus and the apparatus for changing the input method window layout, the device on which the apparatus is applied, and the storage medium.
[0090] like Figure 5 As shown, Figure 5 This is a block diagram illustrating an input method window display device according to an exemplary embodiment of the present disclosure, the device comprising:
[0091] The window display module 520 is configured to display the target input method window if the condition of displaying the input method window is met, wherein the target input method window comprises a soft keyboard region and a raised region, and the raised region is located at the bottom of the soft keyboard region and is used to raise the soft keyboard region.
[0092] In an optional embodiment, the target input method window is an input method window corresponding to the input method application.
[0093] In an optional embodiment, the target input method window is obtained by modifying the layout of the original input method window corresponding to the input method application based on adding a raised region with a specified height at the bottom of the soft keyboard region of the original input method window.
[0094] In an optional embodiment, the device further comprises a layout modification module (not shown) configured to: Figure 5 The process of the layout modification module to increase the raised region comprises:
[0095] obtaining the specified height;
[0096] if the original input method window comprises a blank layout region and a soft keyboard region, adjusting the height of the blank layout region to add the raised region with the specified height at the bottom of the soft keyboard region of the original input method window, wherein the blank layout region is the region between the top of the soft keyboard region and the top of the original input method window.
[0097] In an optional embodiment, the device is applied to a smart terminal, and the specified height is determined based on a preset comfortable operation height and a terminal lower margin, wherein the preset comfortable operation height is a preset distance between the bottom of the soft keyboard region and the lower frame of the body, and the terminal lower margin is the distance between the lower frame of the screen and the lower frame of the body of the smart terminal.
[0098] Alternatively, the specified height is determined based on the model of the smart terminal or the screen size of the smart terminal.
[0099] In an optional embodiment, the device further comprises a layout modification module (not shown) configured to: Figure 5 The process of the layout modification module to increase the raised region comprises:
[0100] When the window layout module listens to the original input method window of the input method application in the application framework layer, the window layout module sends the layout information to the window display module through the Hook mechanism, adjusts the layout information by adding the raised region with the specified height at the bottom of the soft keyboard region of the original input method window, sends the adjusted layout information to the window display module, and displays the target input method window with the modified layout.
[0101] In an optional embodiment, the raised area includes a specified shortcut button set, and the shortcut button set includes one or more input-related shortcut buttons.
[0102] In an optional embodiment, the specified shortcut button set includes one or more of a voice input button, a clipboard button, a commonly used phrase button, an input method switching button, and an input method setting button.
[0103] Accordingly, the present disclosure also provides an apparatus for changing the layout of an input method window, which includes a layout changing module configured to change the layout of an original input method window corresponding to an input method application by adding a raised area with a specified height at the bottom of the soft keyboard area of the original input method window when a target input method window needs to be displayed, and display the target input method window using the adjusted layout information.
[0104] In an optional embodiment, the changing of the layout of the original input method window corresponding to the input method application by adding the raised area with the specified height at the bottom of the soft keyboard area of the original input method window includes:
[0105] When the application framework layer detects that the window layout module initializes the layout of the original input method window of the input method application, the window layout module sends the layout information to the window display module through a Hook mechanism, and adjusts the layout information by adding a raised area with a specified height at the bottom of the soft keyboard area of the original input method window, and sends the adjusted layout information to the window display module to display the target input method window with the changed layout.
[0106] Further, the obtaining process of the raised area includes:
[0107] obtaining a specified height;
[0108] If the original input method window includes a blank layout area and a soft keyboard area, the height of the blank layout area is adjusted to add a raised area with a specified height at the bottom of the soft keyboard area of the original input method window, and the blank layout area is the area between the top of the soft keyboard area and the top of the original input method window.
[0109] Accordingly, the present disclosure also provides an electronic device, which includes a processor, a memory for storing processor-executable instructions, and wherein the processor is configured to implement the steps of any of the above-mentioned input method window display method or the method for changing the layout of an input method window.
[0110] Correspondingly, the disclosure also provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the steps of the input method window display method or the method for changing the input method window layout.
[0111] The present disclosure can take the form of a computer program product implemented on one or more storage media (including but not limited to magnetic storage media, CD-ROM, optical storage media, etc.) containing program code. The computer usable storage media includes permanent and non-permanent, removable and non-removable media, which can be implemented by any method or technology to store information. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0112] The implementation process of the functions and roles of each module in the above device is described in detail in the implementation process of the corresponding steps in the above method, which will not be repeated here.
[0113] For the device embodiment, since it basically corresponds to the method embodiment, the related parts can be referred to the part of the method embodiment. The device embodiment described above is only illustrative, and the modules described as separate components can or can not be physically separated, and the components displayed as modules can or can not be physical modules, that is, they can be located in one place or distributed on multiple network modules. Some or all of the modules can be selected to achieve the purpose of the present disclosure according to actual needs. Those skilled in the art can understand and implement without creative labor.
[0114] As Figure 6 shown, Figure 6 is a block diagram of a device for input method window display or changing input method window layout according to an exemplary embodiment of the present disclosure. The device 600 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. terminal.
[0115] Referring to Figure 6The device 600 can include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.
[0116] The processing component 602 generally controls the overall operation of the device 600 such as the operation of the display, the telephone call, the data communication, the camera operation and the recording operation. The processing component 602 can include one or more processors 620 to execute instructions to complete the steps of the methods described above. Further, the processing component 602 can include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0117] The memory 604 is configured to store various types of data to support the operation of the device 600. Examples of these data include instructions for any application or method operating on the device 600, contact data, phonebook data, messages, pictures, videos, and so on. The memory 604 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0118] The power supply component 606 supplies the power for the various components of the device 600. The power supply component 606 can include a power management system, one or more power supplies, and other components associated with generating, managing and distributing power for the device 600.
[0119] The multimedia component 608 includes a screen providing an output interface between the device 600 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide and a gesture on the touch panel. The touch sensors can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 608 includes a front camera and / or a back camera. The front camera and / or the back camera can receive external multimedia data when the device 600 is in an operation mode, such as a shooting mode or a video mode. Each of the front and back cameras can be a fixed optical lens system or have a focal length and optical zoom capability.
[0120] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC) that is configured to receive an external audio signal when the device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0121] The I / O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0122] The sensor component 614 includes one or more sensors for providing status assessments of various aspects of the device 600. For example, the sensor component 614 can detect an open / closed position of the device 600, relative positioning of components, such as a display and a keypad of the device 600, a change of position of the device 600 or a component thereof, user contact with the device 600 or absence of the same, orientation or acceleration / deceleration of the device 600, and temperature changes of the device 600. The sensor component 614 can include a proximity sensor configured to detect presence of nearby objects without any physical contact. The sensor component 614 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 614 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0123] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and another device. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an example embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 616 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.
[0124] In exemplary embodiments, the apparatus 600 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components, for executing the above-mentioned input method window display method or the method of changing the layout of the input method window.
[0125] In exemplary embodiments, a non-transitory computer readable storage medium including instructions, such as the memory 604 including instructions, is also provided, which can be executed by the processor 620 of the apparatus 600 to complete the above-mentioned methods. For example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0126] When the instructions in the storage medium are executed by the processor, the apparatus 600 can perform any one of the above-mentioned input method window display methods or the method of changing the layout of the input method window.
[0127] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the disclosure that follow, in general, the principles of the disclosure and include developments that are obvious to those skilled in the art. The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the present disclosure is indicated by the following claims.
[0128] It should be understood that the present disclosure is not limited to the precise structures herein described and illustrated, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the claims that follow.
[0129] The above descriptions are only the preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. An input method window display method, characterized in that, The method comprises: displaying a target input method window; the target input method window comprises a soft keyboard area and a raised area, and the raised area is located at the bottom of the soft keyboard area and is used to raise the soft keyboard area; the obtaining process of the raised area comprises: obtaining a specified height; by adjusting the height of the blank layout area, a raised area with a specified height is added at the bottom of the soft keyboard area of the original input method window, the original input method window comprises a blank layout area and a soft keyboard area, and the blank layout area is the area between the top of the soft keyboard area and the top of the original input method window.
2. The method of claim 1, wherein, The target input method window is the input method window corresponding to the input method application, or the target input method window is obtained by changing the layout of the original input method window corresponding to the input method application based on adding a raised area with a specified height at the bottom of the soft keyboard area of the original input method window.
3. The method of claim 2, wherein, The method is applied to a smart terminal, the specified height is determined based on a preset comfortable operation height and a terminal lower margin, the preset comfortable operation height is the distance between the bottom of the soft keyboard area and the lower frame of the body, and the terminal lower margin is the distance between the lower frame of the screen and the lower frame of the body of the smart terminal. Alternatively, the specified height is determined based on the model of the smart terminal or the screen size of the smart terminal.
4. The method of claim 2, wherein, The method of changing the layout of the original input method window corresponding to the input method application based on adding a raised area with a specified height at the bottom of the soft keyboard area of the original input method window comprises: when the application framework layer listens to the window layout module initializing the layout of the original input method window of the input method application, the layout information sent by the window layout module to the window display module is intercepted through the Hook mechanism, the layout information is adjusted based on adding a raised area with a specified height at the bottom of the soft keyboard area of the original input method window, the adjusted layout information is sent to the window display module, and the target input method window with the changed layout is displayed.
5. The method according to any one of claims 1 to 4, characterized in that, The raised area comprises a specified shortcut button set, and the shortcut button set comprises one or more input-related shortcut buttons.
6. The method of claim 5, wherein, The specified shortcut button set comprises one or more specified shortcut buttons in a voice input button, a clipboard button, a commonly used language button, an input method switching button, and an input method setting button.
7. An input method window display device, characterized in that, The device comprises: a window display module configured to display a target input method window if the display condition of the input method window is met; the target input method window comprises a soft keyboard area and a raised area, and the raised area is located at the bottom of the soft keyboard area and is used to raise the soft keyboard area; a layout changing module configured to obtain the raised area: obtaining a specified height; by adjusting the height of the blank layout area, a raised area with a specified height is added at the bottom of the soft keyboard area of the original input method window, the original input method window comprises a blank layout area and a soft keyboard area, and the blank layout area is the area between the top of the soft keyboard area and the top of the original input method window.
8. The apparatus of claim 7, wherein, The target input method window is an input method window corresponding to the input method application, or the target input method window is obtained by modifying a layout of an original input method window corresponding to the input method application based on adding a raised area with a specified height at a bottom of a soft keyboard area of the original input method window.
9. The apparatus of claim 8, wherein, The device is applied to a smart terminal, the specified height is determined based on a preset comfortable operation height and a terminal lower margin, the preset comfortable operation height is a preset distance between a bottom of the soft keyboard area and a lower frame of the body, and the terminal lower margin is a distance between a lower frame of the screen and a lower frame of the body in the smart terminal. Alternatively, the specified height is determined based on a model of the smart terminal or a screen size of the smart terminal.
10. The apparatus of claim 8, wherein, The layout modification module is further configured to: when the application framework layer listens to the window layout module to initialize a layout of the original input method window of the input method application, the layout information sent by the window layout module to the window display module is intercepted through a Hook mechanism, the layout information is adjusted by taking the raised area with the specified height added at the bottom of the soft keyboard area of the original input method window as a target, the adjusted layout information is sent to the window display module, and the target input method window with the modified layout is displayed.
11. The apparatus of any one of claims 7 to 10, wherein, The raised area includes a specified shortcut button set, and the shortcut button set includes one or more input-related shortcut buttons.
12. The apparatus of claim 11, wherein, The specified shortcut button set includes one or more specified shortcut buttons in a voice input button, a clipboard button, a commonly used word button, an input method switching button, and an input method setting button.
13. A terminal device, comprising: It includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method of any one of claims 1 to 6.
14. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Soft keyboard control
CN102246134A
Input box adjusting method and mobile terminal
CN107450843A
Multi-window virtual keyboard
CN108885535A
H5 page processing method and device, electronic equipment and storage medium
CN109814965A
Virtual keyboard generation method, server and computer readable storage medium
CN109885241A