Regex Rookie
Regex Rookie

Reputation: 10662

Android Text Selection Terminology

How are the two "trapezoids" that appear during text selection (in the emulator) called?

Where can I find more information about how to control them programmatically?

For further clarity, I am attaching a snapshot where you can see the left & right "text-selection trapezoids":

enter image description here

Upvotes: 2

Views: 1726

Answers (4)

CJBS
CJBS

Reputation: 15685

It would appear based on the name of the images used to display these handles that they're called Text Select Handles, of which there's a

  • Left Text Select Handle;
  • Right Text Select Handle; and a
  • Middle Text Select Handle (which is just the Left and Right images side-by-side)

The underlying code that manages these is in the three classes that derive from HandleView in android.widget.Editor:

  • InsertionHandleView
  • SelectionStartHandleView
  • SelectionEndHandleView

Upvotes: 0

Lokesh
Lokesh

Reputation: 1

to be precise ..

In android terminology it is "SelectionModifierCursorController"

Upvotes: 0

Romain Guy
Romain Guy

Reputation: 98501

We just call them cursor controllers, or handles.

Upvotes: 2

sourcenouveau
sourcenouveau

Reputation: 30534

This is a shot in the dark--but maybe they're called carets in Webkit?

Upvotes: 0

Related Questions