Android Question what triggers the focus changed event ?

le_toubib

Active Member
Licensed User
Longtime User
hi all
other than the user entring the edittext view or leaving it to another view , or i change the contents programmatically;
what else triggers the focus changed event ?
is it normal that : activity resume/create event should trigger the focus changed event ??
is it normal that the tabhost tabchanged event should trigger the focus changed event ?
what about when the edittext view is created programatically ? should this trigger a focus changed event ?

i have a group of textboxes , with a focus change event on them , that i find firing at the app start or on changing the tabhost tabs for no apparent reason .
am i missing something?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
is it normal that : activity resume/create event should trigger the focus changed event ??
Yes. If the OS sets the focus to the EditText when the activity is resumed.

Note that you can handle the Click event. It will not appear in the autocomplete list but it will work.
 
Upvote 0
Top