hi everyone!
I have a project in which I use the following code to detect when you have the focus or not on a button. but in android oreo never triggers the routine, is there any change in this version?
I have a project in which I use the following code to detect when you have the focus or not on a button. but in android oreo never triggers the routine, is there any change in this version?
B4X:
Sub SetUpOnFocusListener(Button As Button, EventName As String)
FocusButton(Button) 'This will let us focus the button.
Dim JO As JavaObject = Button
Dim event As Object = JO.CreateEvent("android.view.View.OnFocusChangeListener",EventName,False)
JO.RunMethod("setOnFocusChangeListener",Array As Object(event))
End Sub