Android Text Selection Terminology

北城以北 提交于 2019-12-01 09:19:54

问题


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":


回答1:


We just call them cursor controllers, or handles.




回答2:


to be precise ..

In android terminology it is "SelectionModifierCursorController"




回答3:


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



回答4:


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



来源:https://stackoverflow.com/questions/5227725/android-text-selection-terminology

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!