java.lang.Object | |
↳ | com.htc.textselection.HtcTextSelectionWrapper |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HtcTextSelectionWrapper.SelectionWatcher | |||||||||||
HtcTextSelectionWrapper.TextSelectionWatcher |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_END_BY_OUTSIDE_TOUCH | ||||||||||
int | FLAG_INPUT_TYPE_NULL_SELECTION | ||||||||||
int | FLAG_TRIGGER_BY_LONG_CLICK |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets whether or not the content of this view is selectable by the user with additional flags for additional function.
| |||||||||||
Sets whether or not the content of this view is selectable by the user.
| |||||||||||
Find the end offset of the related word.
| |||||||||||
Find the beginning offset of the related word.
| |||||||||||
Sets whether or not (default) the content of this view is selectable by the user.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sets whether or not the content of this view is selectable by the user with additional flags for additional function.
tv | the target TextView |
---|---|
enable | the TextView which is set |
flags | for special settings |
Sets whether or not the content of this view is selectable by the user.
tv | the target TextView |
---|---|
enable | the TextView |
triggerByLongClick | : TextSelection will triggered by long press. |
Find the end offset of the related word.
text | represent the Spannable of TextView. |
---|---|
offset | represents offset of TextView. |
Find the beginning offset of the related word.
text | represent the Spannable of TextView. |
---|---|
offset | represents offset of TextView. |
Sets whether or not (default) the content of this view is selectable by the user. Note that this methods affect the #setFocusable(boolean), #setFocusableInTouchMode(boolean) #setClickable(boolean) and #setLongClickable(boolean) states and you may want to restore these if they were customized. See #isTextSelectable for details.