Questions tagged [android-extracted-text]

Use this tag for questions related to Android's extracted text for an editor or IME

Extracted text is pulled from a standard EditText or custom editor and is used to update an IME's extracted text view, which is displayed in certain situations when the device is in landscape orientation.

See ExtractedText

6 questions
8
votes
2 answers

How to implement Extracted Text for a custom Android View

Background A custom editor view in Android is able to receive text from a system keyboard though an InputConnection. I have been able to make such a view successfully. However, when the device is in landscape mode, the system will sometimes choose…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
7
votes
2 answers

What's the Android "Extracted Text UI"?

I recently had a bug where my small EditText was ballooning up to fill whatever space wasn't consumed by the soft keyboard. But only in Landscape mode. I posted this and got a quick response from a helpful StackOverflow member that I needed to add…
user316117
  • 7,971
  • 20
  • 83
  • 158
3
votes
0 answers

Android Extracted Text UI: Customizing context menu items

I have an EditText with a custom ActionModeCallback to display additional context menu items via setCustom[Insertion/Selection]ActionModeCallback. If the field is selected, and the screen is rotated, some keyboards display an Extracted Text UI,…
DA_123
  • 337
  • 3
  • 10
3
votes
1 answer

Usecase of ExtractedText

I am trying to understand ExtractedText from official documentation as could not find any other blogs/materials online and seems technical documentation is heavy load of jargons. Can anybody please explain me the usecase/purpose of it? Only thing I…
VVB
  • 7,363
  • 7
  • 49
  • 83
1
vote
1 answer

How to update extracted text in a custom editor view

I've created a custom editor for vertical Mongolian text. The circled views show my my custom editor. They keyboards at the bottom are system keyboards. When a system keyboard inputs text into it in landscape orientation, though, the keyboard will…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
1 answer

How to modify the ExtractedEditText for a custom keyboard in Android

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.…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393