An Android system data entry device
By designing a multifunctional data entry device in the Android system, including data collection, translation, filling, clearing and information prompt modules, the lack of functional requirements of the amount input box in the financial app is solved, the versatility and flexibility of the amount input box is realized, and the user experience is improved.
Patent Information
- Application Number
- CN202111120230.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-09-24
AI Technical Summary
In the existing Android system, the functional requirements of the amount input box in the financial app cannot be fully met by native controls, especially in terms of amount formatting, deletion button display, maximum amount filling and prompts.
A data entry device for Android system is designed, including a data acquisition module, a data translation module, a data filling module, a data clearing module and an information prompt module. Through the combination and configuration of these modules, the versatility and flexibility of the amount input box are realized.
It realizes the versatility of the amount input box, meets complex needs such as amount formatting, deletion button display, maximum amount filling and prompts, and improves the user experience and functional integrity of the financial app.
Smart Images

Figure CN114168116B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to an Android system data entry device. Background Art
[0002] As an Android technician with many years of experience, in daily Android development, one often deals with controls. Although the selectable controls provided by Android natively are relatively complete and can meet our most basic function development, sometimes the controls provided by Android may not meet the business requirements. A common scenario in financial apps is the input box for amounts. Generally, it is required that the input box can only input numbers and decimal points, and be separated by commas every thousand digits. After detecting the input amount, a delete button should be displayed on the right for the user to delete all. There should also be a full function button on the far right, which, when clicked by the user, automatically fills in the maximum amount that can be input. Above the input box, the Arabic amount entered should be continuously converted into Chinese capital characters to more directly remind the user of the current input amount. Below the input box, the maximum amount that can be input should be prompted, etc. At this time, we need to implement a multi-functional financial amount input box to meet the call and use in multiple scenarios. Summary of the Invention
[0003] In view of this, an embodiment of the present invention provides an Android system data entry device to meet the call in multiple scenarios.
[0004] To achieve the above object, the embodiment of the present invention provides the following technical solutions:
[0005] An Android system data entry device includes:
[0006] A data acquisition module, a data translation module, a data filling module, a data clearing module, and an information prompt module;
[0007] The data acquisition module is used for: acquiring the amount information input by the user, and performing illegal verification and preset processing on the acquired data;
[0008] The data translation module is used for: performing capital translation processing on the information acquired by the monitored acquisition module;
[0009] The data filling module is used for: filling the maximum value data, and performing display processing on the filled data in the data acquisition module;
[0010] The data clearing module is used for: clearing the data in the data acquisition module, and performing reset processing on the data translation module and the information prompt module;
[0011] The information prompt module is used to: judge and process the data of the acquisition module and the user balance monitored, and prompt information copywriting such as insufficient balance and maximum input for different judgment results.
[0012] Optionally, in the above Android system data entry device, it further includes:
[0013] A switch configuration module for configuring the on-off states of the data translation module, the data filling module, the data clearing module, and the information prompt module.
[0014] Optionally, in the above Android system data entry device, a Chinese character conversion tool class is loaded in the data translation module.
[0015] Optionally, in the above Android system data entry device, a MoneyTextView class is constructed in the data acquisition module. The MoneyTextView class is used to inherit TextView. An onLayout() function, an onMeasure() function, and an onDraw() function are constructed in the data acquisition module, and the setText function built-in is used to receive the amount input by the user.
[0016] Optionally, in the above Android system data entry device, a MoneyEditView class is constructed in the data filling module. The MoneyEditView class is used to inherit RelativeLayout. Preset parameter passing called based on user instructions is constructed in the data filling module.
[0017] Optionally, in the above Android system data entry device, the data acquisition module is further used to add a Textview input box, a MoneyEditView input box, an EditText input box, and two Button buttons in the onLayout() function.
[0018] Optionally, in the above Android system data entry device, the two Button buttons include a delete button and a full delete button.
[0019] Based on the above technical solutions, in the above solution provided by the embodiments of the present invention, in the Android system data entry device, a data acquisition module, a data translation module, a data filling module, a data clearing module, and an information prompt module are configured. By configuring the data translation module, the data filling module, the data clearing module, and the information prompt module in the Android system data entry device, different scenario requirements are met. Description of the Drawings
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on the provided drawings.
[0021] Figure 1 It is a schematic structural diagram of an Android system data entry device disclosed in an embodiment of the present application. Specific embodiments
[0022] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0023] To meet more scenario calls, the present application discloses an Android system data entry device. Refer to Figure 1 , the device may include:
[0024] A data acquisition module 100, a data translation module 200, a data filling module 300, a data clearing module 400, and an information prompt module 500;
[0025] The data acquisition module 100 is used for: acquiring the amount information input by the user, and performing illegal verification and preset processing on the acquired data. Among them, the preset processing includes, but is not limited to, performing illegal verification, separating by commas, and processing such as.00 on the acquired data.
[0026] The data translation module 200 is used for: performing a translation to uppercase on the information acquired by the monitored acquisition module. In this solution, a conversion Chinese character class tool getParseNumber.class is loaded in the data translation module.
[0027] Specifically, the data translation module 200 is used for performing a translation to uppercase such as thousands, ten thousands, one hundred thousands, etc. on the amount information input by the user acquired by the monitored data acquisition module 100.
[0028] The data filling module 300 is used for: filling the maximum value data, and performing a display process on the filled data in the data acquisition module. In this solution, when the number of digits of the amount information input by the user is too large, in order to enable the user to more intuitively know the input amount, the data filling module is used for filling the maximum value data and performing a display process on the filled data in the data acquisition module 100.
[0029] The data clearing module 400 is used to: clear the data of the data acquisition module, and reset the data translation module and the information prompt module; the data clearing module 400 is used to reset the data translation module 200 and the information prompt module 500.
[0030] The information prompt module 500 is used to: judge the data of the monitored acquisition module and the user balance, and prompt information texts such as insufficient balance and maximum input for different judgment results. The information prompt module 500 is used to judge the user input amount received by the monitored data acquisition module, and prompt information texts such as insufficient balance and maximum input for different judgment results.
[0031] Compared with the existing technology, the present invention can better meet the business requirements in the Android system data entry device, and meets the needs of different scenarios through the data translation module, the data filling module, the data clearing module, and the information prompt module.
[0032] In the technical solution disclosed in another embodiment of the present application, the Android system data entry device further includes a switch configuration module for configuring the on-off states of the data translation module, the data filling module, the data clearing module, and the information prompt module. The data translation module, the data filling module, the data clearing module, and the information prompt module can all be switched, meeting the needs of different scenarios, greatly saving development time, and improving the reusability and maintainability of the code.
[0033] In the technical solution disclosed in the embodiment of the present application, a MoneyTextView class can be defined in the data acquisition module to inherit from TextView, three constructors can be added in the data acquisition module, and the onLayout(), onMeasure(), and onDraw() methods can be overridden. A downward arrow symbol can be drawn in onDraw, and the user input amount can be received in the setText method. The user input amount is converted into Chinese capital characters through the getParseNumber class defined in the data translation module 200, and the Chinese capital amount is prompted to the user in the arrow box above the input box.
[0034] In this solution, a custom MoneyEditView class is defined within the data acquisition module. The MoneyEditView class inherits from RelativeLayout. In the data filling module, there are preset parameters for calling based on user instructions. In this solution, three constructors are added to the data acquisition module. The preset parameters can include parameters such as the background of the created input box for receiving input, the image of the delete button, the maximum input amount, whether to display the layout for converting Chinese characters, and the layout for the maximum input amount prompt. These preset parameters can better meet different types of requirements. In this solution, these parameters can be called through call instructions according to different usage scenarios. When not called, the default layout is used and no limit check is performed during input.
[0035] The data acquisition module is also used to add a Textview input box, a MoneyEditView input box, an EditText input box, and two Button buttons in the onLayout() function. In this solution, the onLayout method is overridden in the MoneyEditView.class. In the onLayout method, a Textview, a MoneyEditView, an EditText input box, and two Button buttons are added. Among them, the two Button buttons include a delete button and a full delete button. Click events are set for the delete button and the full delete button to implement deleting all the content in the input box and assigning values to the amount in the input box. The amount is set for the maximum input amount Textview below the input box. The advantage of the full delete button here is that it saves the user's deletion steps, which is equivalent to the reset function.
[0036] In the technical solution disclosed in another embodiment of this application, an.addTextChangedListener new TextWatcher() event is added to the EditText amount control. In the onTextChanged method of the event, the amount entered by the user is continuously received, separated by commas every three digits, and the value is passed to the MoneyTextView to display the capital amount above the EditText. When the input amount is greater than the maximum allowable input amount, the user is prompted of exceeding the limit.
[0037] In the page layout, MoneyEditView is referenced, and in the code class, the value passing method is called to pass parameters such as the maximum input amount, background, and delete image. In this way, it can be referenced wherever the amount needs to be input. Only the parameters need to be passed without dealing with its internal logic, which is efficient and convenient.
[0038] For the convenience of description, when describing the above system, it is divided into various modules according to functions and described separately. Of course, when implementing the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0039] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
[0040] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0041] The steps of the method or algorithm described in combination with the embodiments disclosed in this article can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0042] It should also be noted that, in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0043] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. An Android system data entry device, characterized in that, include: Data collection module, data translation module, data filling module, data clearing module and information prompt module; The data collection module is constructed with a MoneyTextView class for inheriting TextView, and the data collection module is constructed with an onLayout() function, an onMeasure() function, and an onDraw() function. The amount information input by the user is collected through the built-in setText function, and a Textview input box, a MoneyEditView input box, an EditText input box, and two Button buttons are added to the onLayout() function. The two Button buttons include a delete button and a delete all button; The data translation module is used to translate and capitalize the information collected by the monitoring collection module by loading the Chinese character conversion tool getParseNumber.class; The data filling module inherits the MoneyEditView class of RelativeLayout, and is used to fill the maximum value data and display the filled data in the data acquisition module; the data filling module is constructed with preset parameters based on user instructions, so that the preset parameters are called by calling instructions according to different usage scenarios, and the preset parameters at least include: the created receiving input box background, the delete button image, the maximum input amount, whether to display the converted Chinese character layout and the maximum input amount prompt layout; The data clearing module is used to: clear the data of the data acquisition module, and reset the data translation module and the information prompt module; The information prompt module is used to: make judgments on the monitored acquisition module data and user balance, and give prompts of insufficient balance and maximum input according to different judgment results; Among them, add the .addTextChangedListener new TextWatcher() event to the EditText amount control, and continuously receive the amount entered by the user in the onTextChanged method of the event, and separate it with commas every three digits, and pass the value to MoneyTextView to display the amount in uppercase above the EditText. When the input amount is greater than the maximum input amount, the user is prompted to exceed the limit; The device also includes: The switch configuration module is used to configure the opening states of the data translation module, the data filling module, the data clearing module and the information prompting module to meet the needs of different scenarios.
Citation Information
Patent Citations
Method and system for inputting amount of money, financial product transaction system and storage medium
CN108304125A