Hi!
I got stucked at updating the activity on resume.
I'm using PreferenceActivity lib to handle user settings.
So, when settings are closed, I want to redraw user interface within Activity_Resume.
My code:
Everything works fine (Labels, text boxes, etc), except Menus. Menus are not changing at all. When I change the orientation of my device, the menus change to the correct version (depends on settings).
I'm adding menus in Activity_Create sub:
What am I missing?
Peter
I got stucked at updating the activity on resume.
I'm using PreferenceActivity lib to handle user settings.
So, when settings are closed, I want to redraw user interface within Activity_Resume.
My code:
B4X:
Sub Activity_Resume
Activity_RemoveAllViews
Activity_Create (False)
End Sub
Everything works fine (Labels, text boxes, etc), except Menus. Menus are not changing at all. When I change the orientation of my device, the menus change to the correct version (depends on settings).
I'm adding menus in Activity_Create sub:
B4X:
Sub Activity_Create(FirstTime As Boolean)
' Some initializations...
'
'
Activity.AddMenuItem2("Info","MenuInfo",IconInfo)
End Sub
What am I missing?
Peter