I am trying to hide my banner when the edittext1 has focus and show my banner on end focus of edittext1. I get a true in the HasFocus boolean, but never a false. How can I determine if my edittext1 no longer has focus?
Sub Activity_Create(FirstTime As Boolean)
EditText1.InputType = EditText1.INPUT_TYPE_DECIMAL_NUMBERS
End Sub
Sub EditText1_FocusChanged (HasFocus As Boolean)
ToastMessageShow(HasFocus,True)
if HasFocus = True then
Appodeal2.hide(Appodeal2.BANNER_BOTTOM)
else
Appodeal2.show(Appodeal2.BANNER_BOTTOM)
end if
End Sub
Sub Activity_Create(FirstTime As Boolean)
EditText1.InputType = EditText1.INPUT_TYPE_DECIMAL_NUMBERS
End Sub
Sub EditText1_FocusChanged (HasFocus As Boolean)
ToastMessageShow(HasFocus,True)
if HasFocus = True then
Appodeal2.hide(Appodeal2.BANNER_BOTTOM)
else
Appodeal2.show(Appodeal2.BANNER_BOTTOM)
end if
End Sub