Android Text Selection Terminology

2019-02-19 18:39发布

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

4条回答
何必那么认真
2楼-- · 2019-02-19 18:55

We just call them cursor controllers, or handles.

查看更多
男人必须洒脱
3楼-- · 2019-02-19 19:07

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
查看更多
Bombasti
4楼-- · 2019-02-19 19:10

to be precise ..

In android terminology it is "SelectionModifierCursorController"

查看更多
萌系小妹纸
5楼-- · 2019-02-19 19:16

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

查看更多
登录 后发表回答