Input method switching method and system and wearable intelligent device
By receiving operation instructions on the smart watch to control the absolute coordinates of the scroll view to the target key layout component, the problem of inconvenient switching of the smart watch input method is solved, efficient and convenient switching of the input method is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202510530772.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-08-05
AI Technical Summary
The existing smartwatch input method requires frequent input method switching during use, which is inconvenient and inefficient.
By receiving the first or second operation instructions, the scroll view is controlled to scroll to the absolute screen coordinates of the target key layout component, and after the scrolling is completed, the key layout component in the visual area is determined. Combined with the absolute screen coordinates of the target key layout component, the absolute screen coordinates of the scroll view and the top margin, the scroll distance is accurately calculated to realize the precise switching of the key layout component.
It improves the flexibility and convenience of input method switching, improves interaction efficiency, ensures the accuracy and efficiency of scrolling operations, and optimizes the user experience.
Smart Images

Figure CN120428871A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of character input technology, and further relates to an input method switching method, system and wearable smart device. Background Art
[0002] As smartwatches become more popular, their functions continue to expand, and text input has become one of the most frequently used functions. However, existing smartwatch input methods have a significant technical problem in actual use: users need to frequently switch input methods during input, which is very inconvenient. Summary of the Invention
[0003] In order to solve the above technical problems, the present application provides an input method switching method, a system and a wearable smart device, which improve the flexibility and convenience of input method switching.
[0004] In a first aspect, the present application provides an input method switching method, comprising: receiving a first operation instruction or a second operation instruction; when the first operation instruction is received, controlling the scroll view to scroll to the screen absolute coordinates of the target key layout component based on the target key anchor point indicated in the first operation instruction; when the second operation instruction is received, scrolling the scroll view based on the second operation instruction, determining the key layout component within the visible area of the scroll view after the scrolling is completed, and using the key layout component as the target key layout component.
[0005] The above input method switching method can flexibly control the scrolling behavior of the scroll view through the first or second operation instruction. When the first operation instruction is received, the scroll view is accurately scrolled to the screen absolute coordinate position of the target button layout component according to the target button anchor point indicated in the first operation instruction. When the second operation instruction is received, the system will scroll the scroll view according to the second operation instruction, and automatically determine the button layout component in the visible area as the target button layout component after the scrolling is completed. This method not only improves the flexibility and convenience of input method switching, but also improves the interaction efficiency, allowing users to switch and access different button layout components more quickly, greatly optimizing the user experience.
[0006] In one implementation, when a first operation instruction is received, the scroll view is controlled to scroll to the screen absolute coordinates of the target button layout component based on the target button anchor point indicated in the first operation instruction, specifically including: obtaining the screen absolute coordinates of the target button layout component based on the target button anchor point; determining the total scrolling distance of the scrolling view based on the screen absolute coordinates of the scrolling view, the screen absolute coordinates of the target button layout component and the top inner margin; determining the distance to be scrolled based on the total scrolling distance and the current scrolling distance of the scrolling view; and controlling the scrolling view to scroll to the screen absolute coordinates of the target button layout component based on the distance to be scrolled.
[0007] The above input method switching method combines the target button layout component's absolute screen coordinates, the scroll view's absolute screen coordinates, and the top padding to accurately calculate the scroll view's total scroll distance. It then determines the remaining scroll distance based on the total scroll distance and the scroll view's current scroll distance, and uses this information to control the scroll view to scroll to the target button layout component's absolute screen coordinates. This implementation ensures accurate and efficient scrolling operations, significantly improving the user experience when navigating content within the scroll view.
[0008] In one implementation, when a second operation instruction is received, the scrolling view is scrolled based on the second operation instruction, specifically including: obtaining the initial coordinates of the user's finger touching the screen and the real-time coordinates of the user's finger during the sliding process; scrolling the scrolling view based on the initial coordinates and the real-time coordinates; when the scrolling is completed, updating the absolute screen coordinates of the scrolling view.
[0009] In one implementation, the key layout components within the visible area of the scrolling view are determined after the scrolling is completed, specifically including: determining the range of the visible area of the updated scrolling view based on the height of the visible area of the updated scrolling view and the absolute screen coordinates of the updated scrolling view; determining the key layout components within the visible area of the updated scrolling view based on the absolute screen coordinates of all key layout components and the range of the visible area of the updated scrolling view.
[0010] The above input method switching method obtains the initial coordinates of the user's finger touching the screen and the real-time coordinates during the scrolling process, and scrolls the scroll view based on these coordinates. After scrolling, the scroll view's absolute screen coordinates are updated. The visible area is determined based on the updated coordinates and the visible area height. The key layout components within the visible area are then determined based on the absolute screen coordinates of the key layout components and the visible area range. This process improves the smoothness and accuracy of user interaction and optimizes the user experience.
[0011] In one implementation, it also includes: monitoring the scrolling state of the scrolling view in real time; when the scrolling view is in the scrolling state, calling a first preset animation to gradually hide the navigation bar on the screen; when the scrolling view finishes scrolling, calling a second preset animation to gradually reveal the navigation bar.
[0012] In the second aspect, the present application also provides an input method switching system, including: a receiving module, configured to receive a first operation instruction or a second operation instruction; a control module, configured to control the scrolling view to scroll to the screen absolute coordinates of the target key layout component based on the target key anchor point indicated in the first operation instruction when the first operation instruction is received; the control module is configured to scroll the scrolling view based on the second operation instruction when the second operation instruction is received, determine the key layout component within the visible area of the scrolling view after the scrolling is completed, and use the key layout component as the target key layout component.
[0013] In one implementation, the control module is configured to obtain the screen absolute coordinates of the target key layout component based on the target key anchor point; the control module is configured to determine the total scrolling distance of the scrolling view based on the screen absolute coordinates of the scrolling view, the screen absolute coordinates of the target key layout component and the top inner margin; the control module is configured to determine the distance to be scrolled based on the total scrolling distance and the current scrolling distance of the scrolling view; the control module is configured to control the scrolling view to scroll to the screen absolute coordinates of the target key layout component based on the distance to be scrolled.
[0014] In one implementation, the control module is configured to obtain the initial coordinates of the user's finger touching the screen and the real-time coordinates of the user's finger during the sliding process; the control module is configured to scroll the scrolling view based on the initial coordinates and the real-time coordinates; the control module is configured to update the absolute screen coordinates of the scrolling view after the scrolling is completed.
[0015] In a third aspect, the present application provides a wearable smart device comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of any of the above-mentioned input method switching methods are implemented.
[0016] In one implementation, the wearable smart device is a smart watch.
[0017] Compared with the prior art, the present invention has at least one of the following beneficial effects:
[0018] 1. Through the first or second operation instructions, the scrolling behavior of the scroll view can be flexibly controlled. When the first operation instruction is received, the scroll view is accurately scrolled to the screen absolute coordinate position of the target key layout component according to the target key anchor point indicated in the first operation instruction. When the second operation instruction is received, the system scrolls the scroll view according to the second operation instruction, and automatically determines the key layout component in the visible area as the target key layout component after the scrolling is completed. This method not only improves the flexibility and convenience of input method switching, but also improves the interaction efficiency, allowing users to switch and access different key layout components more quickly, greatly optimizing the user experience.
[0019] 2. The total scroll distance of the scroll view is accurately calculated by combining the target button layout component's absolute screen coordinates, the scroll view's absolute screen coordinates, and the top padding. The remaining scroll distance is then determined based on the total scroll distance and the scroll view's current scroll distance. This distance is then used to control the scroll view to scroll to the target button layout component's absolute screen coordinates. This approach ensures accurate and efficient scrolling, significantly improving the user experience when navigating content within the scroll view.
[0020] 3. Scroll the scroll view based on the coordinates of the user's initial touch and the real-time coordinates during the scrolling process. After scrolling, the scroll view's absolute screen coordinates are updated. The visible area is determined based on the updated coordinates and the visible area height. The button layout components within the visible area are then determined based on the button layout components' absolute screen coordinates and visible area range. This process improves the fluidity and accuracy of user interaction and optimizes the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The preferred embodiments will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.
[0022] Figure 1 A schematic diagram of a smart watch provided in an embodiment of the present application is shown;
[0023] Figure 2 A flow chart of an input method switching method provided in an embodiment of the present application is shown;
[0024] Figure 3 A flow chart of a click-to-switch input method provided by an embodiment of the present application is shown;
[0025] Figure 4 A flow chart of a sliding switching input method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings and other embodiments can be obtained based on these drawings without inventive work.
[0027] To simplify the drawings, only portions relevant to the invention are schematically depicted in each figure; they do not represent the actual structure of the product. Furthermore, to simplify the drawings and facilitate understanding, in some figures, only one component with the same structure or function is schematically depicted or labeled. In this document, "one" not only means "only one" but also "more than one."
[0028] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0029] It should be noted that, unless otherwise specified or limited, the terms "mounted," "connected," and "connected" should be understood broadly. For example, they can refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediary; and internal communication between two components. Those skilled in the art will understand the specific meanings of these terms in the present invention based on the specific circumstances.
[0030] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0031] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention, and such improvements and modifications should also be considered within the scope of protection of the present invention.
[0032] Smartwatch input has evolved from button input to touchscreen input. Early smartwatches relied primarily on physical buttons, typically located on the side or around the dial, for basic operations like answering calls, sending messages, and switching input modes. With technological advancements, touchscreen input has gradually become the mainstream input method for smartwatches. Touchscreen technology allows users to input text by directly touching a virtual keyboard on the screen or using gestures. For example, smartwatches can use a nine-square grid input method or a full keyboard input method, allowing users to enter text by touching the letter typing box on the smartwatch screen.
[0033] Reference Attachment Figure 1 , which shows a schematic diagram of a smart watch provided by an embodiment of the present application. Figure 1As shown, in touch screen input, the input method keyboard interface in the smart watch screen may include 4 buttons (or switch buttons), namely, number buttons, symbol buttons, lowercase letter buttons, and uppercase letter buttons. Above the 4 buttons are the input box and the delete button, and below the 4 buttons is a sliding list, which can list the sub-buttons corresponding to these 4 buttons in the order of number buttons, symbol buttons, lowercase letter buttons, and uppercase letter buttons. Among them, the sub-buttons corresponding to the number buttons are numbers 0-9, and similarly, other sub-buttons are also detailed displays of their corresponding buttons. At the bottom of the input method keyboard interface is a navigation bar, which includes a return function button (refer to the attached Figure 1 The "<" button in the figure) and a completion button are provided. The return function button is used to return to the previous level. The completion button includes the function of verifying whether the password is correct and the connection function.
[0034] When the user uses the smartwatch to input, they can click the button they want to input, and the string corresponding to the button will be displayed in the input box. When the user finishes inputting, they can click the Done button in the navigation bar to end the input. If the user makes an error in the input, they can click the Delete button to delete it.
[0035] In the layout of the input method keyboard interface, the overall layout is in a scroll view (ScrollView), and each key and sub-key is wrapped in a separate linear layout (Linearlayout). Each key has a corresponding key layout component. For example, the numeric key layout component includes the numeric key and its corresponding sub-keys of 0-9, the symbol key layout component includes the symbol key and its corresponding sub-key of the specific symbol, and the same applies to the lowercase letter key layout component and the uppercase letter key layout component. Therefore, switching of the input method can refer to switching between keys, such as switching from numeric keys to symbol keys, from symbol keys to lowercase letter keys or uppercase letter keys, etc.; it can also refer to switching between key layout components, such as switching from numeric key layout components to symbol key layout components, etc.
[0036] Reference Attachment Figure 2 , which shows a flow chart of an input method switching method provided by an embodiment of the present application. Figure 2 As shown, the method is applied to a smart watch, including:
[0037] S200: Receive a first operation instruction or a second operation instruction.
[0038] S210: When a first operation instruction is received, the scroll view is controlled to scroll to the screen absolute coordinates of the target button layout component based on the target button anchor point indicated in the first operation instruction.
[0039] S220: When a second operation instruction is received, scroll the scroll view based on the second operation instruction, determine the button layout component in the visible area of the scroll view after the scrolling is completed, and use the button layout component as the target button layout component.
[0040] Users can jump to the input method keyboard interface by clicking the WiFi name on the smartwatch screen. After entering the input method keyboard interface, users can choose to switch input methods by clicking or sliding according to their needs.
[0041] When the user selects the "click to switch" input method, the smartwatch receives a first operation instruction (also known as a "click to switch" operation instruction) and determines the absolute screen coordinates of the target key layout component (the actual position of the target key layout component on the smartwatch screen) based on the target key anchor point indicated in the first operation instruction (the target key anchor point records the relative position of the target key layout component in the keyboard layout and is used to quickly locate the target key layout component). The smartwatch then calls the scroll view's smooth scroll method (smoothScrollTo method) to control the scroll view to scroll to the absolute screen coordinates of the target key layout component and highlight the text of the target key. For example, if the initial input method keyboard interface displays a numeric key layout component and the target key layout component clicked by the user is a symbol key layout component, the smartwatch can determine the absolute screen coordinates of the symbol key layout component based on the symbol key anchor point indicated in the first operation instruction and further control the scroll view to scroll to the absolute screen coordinates of the symbol key layout component, thus completing the switch from the numeric key to the symbol key and highlighting the text of the symbol key.
[0042] When the user chooses to switch the input method by sliding, the smart watch receives a second operation instruction (or sliding switch operation instruction), detects the sliding operation of the user's finger, scrolls the scroll view in the smart watch screen according to the sliding operation, and when the user's sliding operation ends, the corresponding scrolling operation also ends. When the scrolling is completed, the key layout component in the visible area of the scroll view is determined, and the key layout component is used as the target key layout component, and the target key anchor point is recorded and the text of the target key is updated to highlight. For example, if the initial input method keyboard interface displays a numeric key layout component, and the key layout component in the visible area of the scroll view after the scrolling is completed is a symbol key layout component, then the symbol key layout component is used as the target key layout component, that is, the switch from the numeric key to the symbol key is completed, and the symbol key anchor point is recorded and the text of the symbol key is updated to highlight.
[0043] The embodiment of the present application can flexibly control the scrolling behavior of the scroll view through the first or second operation instruction. When the first operation instruction is received, the scroll view is accurately scrolled to the screen absolute coordinate position of the target button layout component according to the target button anchor point indicated in the first operation instruction. When the second operation instruction is received, the system will scroll the scroll view according to the second operation instruction, and automatically determine the button layout component in the visible area as the target button layout component after the scrolling is completed. This method not only improves the flexibility and convenience of input method switching, but also improves the interaction efficiency, allowing users to switch and access different button layout components more quickly, greatly optimizing the user experience.
[0044] Reference Attachment Figure 3 , which shows a flow chart of a click-to-switch input method provided by an embodiment of the present application. Figure 3 Shown, including:
[0045] S300: Obtain the screen absolute coordinates of the target button layout component based on the target button anchor point.
[0046] S310 : Determine a total scrolling distance of the scrolling view based on the absolute screen coordinates of the scrolling view, the absolute screen coordinates of the target button layout component, and the top inner margin.
[0047] S320: Determine a distance to be scrolled based on the total scroll distance and the current scroll distance of the scroll view.
[0048] S330: Based on the distance to be scrolled, control the scroll view to scroll to the absolute screen coordinates of the target button layout component.
[0049] When the smartwatch receives the first operation instruction, it first obtains the screen absolute coordinates of the target button layout component, the screen absolute coordinates of the scroll view, and the top padding of the target button layout component. Then, based on these obtained parameters, the total scrolling distance required for the scroll view to scroll to the screen absolute coordinates of the target button layout component is determined. Based on the total scrolling distance and the current scrolling distance of the scroll view (or the distance the scroll view has scrolled), the distance to be scrolled of the scroll view is determined. Finally, the smooth scrolling method of the scroll view is called, and the distance to be scrolled is passed in, so that the view to be scrolled will be smoothly scrolled to the screen absolute coordinates of the target button layout component. For example, the screen absolute coordinates of the target button layout component can be y1, the screen absolute coordinates of the scroll view can be y2, and the top padding of the target button layout component can be y3. The calculation formula for the total scrolling distance can be y1-y2-y3, and the calculation formula for the distance to be scrolled can be y1-y2-y3-current scrolling distance.
[0050] This embodiment of the present application combines the absolute screen coordinates of the target button layout component, the absolute screen coordinates of the scroll view, and the top padding to accurately calculate the total scroll distance of the scroll view. Furthermore, based on the total scroll distance and the current scroll distance of the scroll view, the remaining scroll distance is determined, and the scroll view is controlled to scroll to the absolute screen coordinates of the target button layout component accordingly. This implementation ensures the accuracy and efficiency of scrolling operations, significantly improving the user's interactive experience when navigating content within the scroll view.
[0051] Reference Attachment Figure 4 , which shows a flow chart of a sliding switching input method provided by an embodiment of the present application. Figure 4 Shown, including:
[0052] S400, obtaining the initial coordinates of the user's finger touching the screen and the real-time coordinates of the user's finger during the sliding process.
[0053] S410 , scrolling the scroll view based on the initial coordinates and the real-time coordinates.
[0054] S420: When the scrolling is completed, the absolute screen coordinates of the scroll view are updated.
[0055] S430 : Determine a range of the updated visible area of the scroll view based on the height of the updated visible area of the scroll view and the updated absolute screen coordinates of the scroll view.
[0056] S440 : Determine the button layout components within the updated visible area of the scroll view based on the absolute screen coordinates of all the button layout components and the range of the updated visible area of the scroll view.
[0057] When the smartwatch receives the second operation instruction, it obtains the initial coordinates of the user's finger touching the smartwatch screen. When the user's finger begins to slide, it obtains the real-time coordinates of the user's finger during the sliding process. Based on the initial coordinates and the real-time coordinates, it calculates the sliding distance of the user's finger. Simultaneously, it scrolls the scroll view based on the sliding distance of the user's finger. When the scrolling is completed, the absolute screen coordinates of the scroll view are updated based on the sliding distance, thereby obtaining the updated absolute screen coordinates of the scroll view. The specific formula is: updated absolute screen coordinates of the scroll view = absolute screen coordinates of the scroll view before the update + scroll distance.
[0058] Furthermore, based on the height of the visible area of the scrolling view before or after the update (the height of the visible area of the scrolling view does not change before and after the update) and the absolute screen coordinates of the updated scrolling view, the bottom coordinates of the visible area of the updated scrolling view can be determined. Moreover, the absolute screen coordinates of the updated scrolling view are equal to the top coordinates of the visible area of the updated scrolling view. Then, based on the bottom coordinates and the top coordinates, the range of the visible area of the updated scrolling view can be determined. The absolute screen coordinates of each button layout component on the smart watch screen are compared with the range of the visible area of the updated scrolling view in turn to determine whether the absolute screen coordinates of each button layout component are within the range of the visible area of the updated scrolling view. The button layout component within the range of the visible area of the updated scrolling view is used as the target button layout component, and the target button anchor point is recorded and the text of the target button is updated to be highlighted.
[0059] The following example uses some specific numerical values (these numerical values are provided for ease of understanding only and are not limited to the numerical values listed below) to illustrate the determination of the target key layout component within the visible area. First, the screen absolute coordinates of the updated scroll view can be 100 pixels. The screen absolute coordinates of each key layout component are then obtained. For example, the screen absolute coordinates of the lowercase letter key layout component are 150 pixels, the screen absolute coordinates of the number key layout component are 550 pixels, and the screen absolute coordinates of the symbol key layout component are 950 pixels. The visible area of the updated scroll view is then calculated, with its top coordinate being 100 pixels and its bottom coordinate being 500 pixels, the screen absolute coordinates of the updated scroll view plus the visible area height of 400 pixels. A for loop is then used to sequentially determine whether the screen absolute coordinates of each key layout component are within the visible area of the updated scroll view. For the lowercase letter key layout component, its screen absolute coordinate is 150 pixels, which is within the range [100, 500], indicating that the lowercase letter key layout is within the visible area of the updated scroll view. The screen absolute coordinates of the remaining key layout components are not within the visible area of the updated scroll view, so the target key layout component is recorded as the lowercase key layout component, the lowercase key anchor point is recorded, and the button text on the navigation bar is updated to be highlighted to indicate that the lowercase keyboard mode is currently in progress.
[0060] The embodiment of the present application obtains the initial coordinates of the user's finger touching the screen and the real-time coordinates during the sliding process, and scrolls the scroll view based on these coordinates. After the scrolling is completed, the absolute screen coordinates of the scroll view are updated, the visible area range is determined based on the updated coordinates and the visible area height, and the button layout components within the visible area are determined based on the absolute screen coordinates of the button layout components and the visible area range. This process can improve the smoothness and accuracy of user interaction and optimize the user experience.
[0061] In one embodiment of the present application, it also includes: monitoring the scrolling state of the scrolling view in real time; when the scrolling view is in the scrolling state, calling the first preset animation to make the navigation bar on the screen fade away; when the scrolling view finishes scrolling, calling the second preset animation to make the navigation bar fade in.
[0062] On a smartwatch, you can use the addOnScrollChangedListener method on the scroll view to determine whether the scroll view is scrolling. If the scroll view is scrolling, you can call a first preset animation to fade the navigation bar in. When the scroll view finishes scrolling, you can call a second preset animation to fade the navigation bar in.
[0063] An embodiment of the present application provides an input method switching system, including a module or unit for executing any of the above embodiments, the system including: a receiving module, configured to receive a first operation instruction or a second operation instruction; a control module, configured to, when receiving the first operation instruction, control the scrolling view to scroll to the screen absolute coordinates of the target key layout component based on the target key anchor point indicated in the first operation instruction; the control module, configured to, when receiving the second operation instruction, scroll the scrolling view based on the second operation instruction, determine the key layout component within the visible area of the scrolling view after the scrolling is completed, and use the key layout component as the target key layout component.
[0064] The embodiment of the present application receives the first operation instruction or the second operation instruction through the receiving module, so that the user can choose different operation methods to switch the input method according to his own needs, which increases the flexibility of the operation. When the first operation instruction is received, the control module accurately controls the scroll view to scroll to the screen absolute coordinates of the target button layout component based on the target button anchor point, thereby realizing fast and accurate input method switching and improving interaction efficiency. When the second operation instruction is received, the control module scrolls the scroll view according to the user's sliding operation, and automatically determines the button layout component in the visible area as the target button layout component after the scrolling is completed, further improving the convenience and smoothness of the user's operation, allowing the user to switch and access different button layout components more quickly, greatly optimizing the user experience.
[0065] In one embodiment of the present application, the control module is configured to obtain the screen absolute coordinates of the target key layout component based on the target key anchor point; the control module is configured to determine the total scrolling distance of the scrolling view based on the screen absolute coordinates of the scrolling view, the screen absolute coordinates of the target key layout component and the top inner margin; the control module is configured to determine the distance to be scrolled based on the total scrolling distance and the current scrolling distance of the scrolling view; the control module is configured to control the scrolling view to scroll to the screen absolute coordinates of the target key layout component based on the distance to be scrolled.
[0066] In one embodiment of the present application, the control module is configured to obtain the initial coordinates of the user's finger touching the screen and the real-time coordinates of the user's finger during the sliding process; the control module is configured to scroll the scrolling view based on the initial coordinates and the real-time coordinates; the control module is configured to update the absolute screen coordinates of the scrolling view after the scrolling is completed.
[0067] An embodiment of the present application further provides a wearable smart device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the input method switching method of any of the above embodiments are implemented.
[0068] In one embodiment of the present application, the wearable smart device is a smart watch.
[0069] A wearable smart device in an embodiment of the present application is used. Since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0070] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention, and such improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for switching an input method, characterized in that: include: receiving a first operation instruction or a second operation instruction; When the first operation instruction is received, controlling the scroll view to scroll to the screen absolute coordinates of the target button layout component based on the target button anchor point indicated in the first operation instruction; When the second operation instruction is received, the scroll view is scrolled based on the second operation instruction, and after the scrolling is completed, the button layout component in the visible area of the scroll view is determined, and the button layout component is used as the target button layout component.
2. The input method switching method according to claim 1, characterized in that: The step of controlling the scroll view to scroll to the screen absolute coordinates of the target button layout component based on the target button anchor point indicated in the first operation instruction upon receiving the first operation instruction specifically includes: Based on the target button anchor point, obtaining the screen absolute coordinates of the target button layout component; Determine a total scroll distance of the scroll view based on the absolute screen coordinates of the scroll view, the absolute screen coordinates of the target button layout component, and a top padding; Determining a distance to be scrolled based on the total scroll distance and the current scroll distance of the scroll view; Based on the distance to be scrolled, the scroll view is controlled to scroll to the absolute screen coordinates of the target button layout component.
3. The input method switching method according to claim 1, wherein: The step of scrolling the scroll view based on the second operation instruction when the second operation instruction is received specifically includes: Get the initial coordinates of the user's finger touching the screen and the real-time coordinates of the user's finger during the sliding process; scrolling the scroll view based on the initial coordinates and the real-time coordinates; When the scrolling is completed, the absolute screen coordinates of the scroll view are updated.
4. The input method switching method according to claim 3, characterized in that: Determining the button layout components within the visible area of the scroll view after the scrolling is completed specifically includes: Determine the range of the updated visible area of the scroll view based on the updated height of the visible area of the scroll view and the updated absolute screen coordinates of the scroll view; The button layout components within the updated visible area of the scroll view are determined based on the absolute screen coordinates of all the button layout components and the range of the updated visible area of the scroll view.
5. The input method switching method according to any one of claims 1 to 4, characterized in that: Also includes: Monitor the scrolling state of the scroll view in real time; When the scroll view is in a scrolling state, calling a first preset animation to gradually hide the navigation bar on the screen; When the scroll view finishes scrolling, a second preset animation is called to gradually display the navigation bar.
6. An input method switching system, characterized in that: include: A receiving module, configured to receive a first operation instruction or a second operation instruction; a control module configured to, when receiving the first operation instruction, control the scroll view to scroll to the screen absolute coordinates of the target button layout component based on the target button anchor point indicated in the first operation instruction; The control module is configured to scroll the scrolling view based on the second operation instruction when receiving the second operation instruction, determine the button layout component within the visible area of the scrolling view after the scrolling is completed, and use the button layout component as the target button layout component.
7. The input method switching system according to claim 6, wherein: The control module is configured to obtain the screen absolute coordinates of the target button layout component based on the target button anchor point; The control module is configured to determine a total scroll distance of the scroll view based on the absolute screen coordinates of the scroll view, the absolute screen coordinates of the target button layout component, and a top padding; The control module is configured to determine a distance to be scrolled based on the total scroll distance and a current scroll distance of the scroll view; The control module is configured to control the scroll view to scroll to the screen absolute coordinates of the target button layout component based on the distance to be scrolled.
8. The input method switching system according to claim 6, wherein: The control module is configured to obtain the initial coordinates of the user's finger touching the screen and the real-time coordinates of the user's finger during the sliding process; The control module is configured to scroll the scroll view based on the initial coordinates and the real-time coordinates; The control module is configured to update the absolute screen coordinates of the scroll view after the scrolling is completed.
9. A wearable smart device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the input method switching method according to any one of claims 1 to 5 are implemented.
10. The wearable smart device according to claim 9, characterized in that: The wearable smart device is a smart watch.