Android Question Show/Hide Cursor Drag thingy programatically [SOLVED]

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All,

I am not sure of the correct name but in the image attached the "cursor drag thing" is shown. I need to show/hide this proramatically but can'r find any reference to it in my searches. This may be because I have not used the correct term.

Any help appreciated.

Regards Roger

Cursor.jpg
 

mangojack

Well-Known Member
Licensed User
Longtime User
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is the code:
B4X:
Sub ShowPins (et As EditText, Show As Boolean)
   Dim r As Reflector
   r.Target = et
   r.Target = r.GetField("mEditor")
   r.Target = r.RunMethod("getSelectionController")
   If r.Target <> Null Then
     If Show Then
       r.RunMethod("show")
     Else
       r.RunMethod("hide")
     End If
   End If
End Sub

It is based on private APIs.
 
Upvote 0
Top