Answer the question
In order to leave comments, you need to log in
Own keyboard for Text Fields, how to do it?
You need to call your keyboard for all text fields, in which there are only numbers and symbols.
How to implement this in your project.
P.S. The keyboard is needed in the interior of the project, and not written separately.
Answer the question
In order to leave comments, you need to log in
So what's the problem?
If you don't want to do full-fledged clave
code.tutsplus.com/tutorials/create-a-custom-keyboa... ,
Create a layout based on TableLayout or GridLayout and load via ViewStub.
Or quite simply, limit the input characters to the text field
developer.android.com/reference/android/widget/Tex...
stackoverflow.com/questions/3349121/how-do-i-use-i...
developer.android. com/reference/android/text/TextW...
Create a layout with the necessary buttons, in the code for each button you hang a handler
new OnClickListener() {
@Override
public void onClick(View v) {
new Thread(new Runnable() {
@Override
public void run() {
Instrumentation instr = new Instrumentation();
instr.sendKeyDownUpSync(KeyEvent.KEYCODE_0);
}
}).start();
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question