I want to change the font and text size of the text in a custom keyboard's extracted text view. How do I get a reference to the EditText
?
I just learned how to do this by examining the InputMethodService
source code, so I am posting this as a Q&A. My answer is below.
You can get a reference to the
ExtractedEditText
by overridingonCreateExtractTextView()
in yourInputMethodService
subclass. You can modify it there however you like before passing it on.Note that the documentation says: