You can get a reference to the ExtractedEditText
by overriding onCreateExtractTextView()
in your InputMethodService
subclass. You can modify it there however you like before passing it on.
@Override
public View onCreateExtractTextView() {
View extractedView = super.onCreateExtractTextView();
ExtractEditText editText = extractedView.findViewById(android.R.id.inputExtractEditText);
editText.setTypeface(myTypeFace);
editText.setTextSize(myTextSize);
return extractedView;
}
Note that the documentation says:
public View onCreateExtractTextView ()
Called by the framework to create the layout for showing extacted (sic)
text. Only called when in fullscreen mode. The returned view hierarchy
must have an ExtractEditText
whose ID is R.id.inputExtractEditText
.