0

I wanna add 4 buttons to my custom keyboard (select all, cut, copy, paste) but I couldn't find the way of doing that. I have tried the select all using this line of code

getCurrentInputConnection().setSelection(0,1000);

but it didnt work, so is there any help for doing these 4 buttons (select all, cut, copy, paste) thanks

Khalid AL Bitar
  • 181
  • 1
  • 7

1 Answers1

0

You can use registered EditText to you keyboard to do all (select, copy,cut,paste) you want with it like a regular EditText.

Here is answer related to your question to help you understand how use the EditText

And also you can learn more detail about custom keyboard from this article which is provided source code.

Alireza Sharifi
  • 1,127
  • 1
  • 9
  • 18