'in each activity, I use a single sub to add all the tooltips on that screen
Sub addAllTooltips
setTooltip(saveButton, "Save & done")
setTooltip(cancelButton, "Cancel")
End Sub
'on Android 8+, attaches a tooltip to the given view.
'Ignored on earlier versions of Android
Sub setTooltip(viewArg As View, textArg As String)
Dim p As Phone
If p.SdkVersion >= 26 Then
Dim viewJO As JavaObject = viewArg
viewJO.RunMethod("setOnLongClickListener", Array As Object(Null)) 'remove any longClick listener
viewJO.RunMethod("setTooltip", Array As Object(textArg))
End If
End Sub