java.lang.Object | |
↳ | android.text.Selection |
Utility class for manipulating cursors and selections in CharSequences. A cursor is a selection where the start and end are at the same offset.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object | SELECTION_END | ||||||||||
Object | SELECTION_START |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Move the selection end to the buffer offset physically below
the current selection end.
| |||||||||||
Move the selection end to the buffer offset physically to the left of
the current selection end.
| |||||||||||
Move the selection end to the buffer offset physically to the right of
the current selection end.
| |||||||||||
Move the selection edge to offset
index . | |||||||||||
Move the selection end to the buffer offset physically above
the current selection end.
| |||||||||||
Return the offset of the selection edge or cursor, or -1 if
there is no selection or cursor.
| |||||||||||
Return the offset of the selection anchor or cursor, or -1 if
there is no selection or cursor.
| |||||||||||
Move the cursor to the buffer offset physically below the current
offset, or return false if the cursor is already on the bottom line.
| |||||||||||
Move the cursor to the buffer offset physically to the left of
the current offset, or return false if the cursor is already
at the left edge of the line and there is not another line to move it to.
| |||||||||||
Move the cursor to the buffer offset physically to the right of
the current offset, or return false if the cursor is already at
at the right edge of the line and there is not another line
to move it to.
| |||||||||||
Move the cursor to the buffer offset physically above the current
offset, or return false if the cursor is already on the top line.
| |||||||||||
Remove the selection or cursor, if any, from the text.
| |||||||||||
Select the entire text.
| |||||||||||
Move the cursor to offset
index . | |||||||||||
Set the selection anchor to
start and the selection edge
to stop . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Move the selection end to the buffer offset physically below the current selection end.
Move the selection end to the buffer offset physically to the left of the current selection end.
Move the selection end to the buffer offset physically to the right of the current selection end.
Move the selection edge to offset index
.
Move the selection end to the buffer offset physically above the current selection end.
Return the offset of the selection edge or cursor, or -1 if there is no selection or cursor.
Return the offset of the selection anchor or cursor, or -1 if there is no selection or cursor.
Move the cursor to the buffer offset physically below the current offset, or return false if the cursor is already on the bottom line.
Move the cursor to the buffer offset physically to the left of the current offset, or return false if the cursor is already at the left edge of the line and there is not another line to move it to.
Move the cursor to the buffer offset physically to the right of the current offset, or return false if the cursor is already at at the right edge of the line and there is not another line to move it to.
Move the cursor to the buffer offset physically above the current offset, or return false if the cursor is already on the top line.
Remove the selection or cursor, if any, from the text.
Select the entire text.
Move the cursor to offset index
.
Set the selection anchor to start
and the selection edge
to stop
.