In a B4XPages application, I update the text of a menu item in runtime.
However, this change isn't visible until I load another page and return to the original were the text was changed.
I've tried calling B4XPage_Appear after the change, but only my code is executed, not the "parent" code, so it doesn't work. I know this because the log doesn't show "*** mainpage: B4XPage_Appear". How can I trigger this kind of full refresh? Recreate the whole Mainpage will be "to use a sledgehammer to crack a nut"...
PS: It's similar to this:
https://www.b4x.com/android/forum/threads/open-and-close-b4xpage.167900/#post-1029265
But I've tried the ideas you suggested there without success.
The point is the menu item act as a switch, and the text changes "enabled/disabled". I dont wanna use Appcompat only for that.
However, this change isn't visible until I load another page and return to the original were the text was changed.
I've tried calling B4XPage_Appear after the change, but only my code is executed, not the "parent" code, so it doesn't work. I know this because the log doesn't show "*** mainpage: B4XPage_Appear". How can I trigger this kind of full refresh? Recreate the whole Mainpage will be "to use a sledgehammer to crack a nut"...
PS: It's similar to this:
https://www.b4x.com/android/forum/threads/open-and-close-b4xpage.167900/#post-1029265
But I've tried the ideas you suggested there without success.
The point is the menu item act as a switch, and the text changes "enabled/disabled". I dont wanna use Appcompat only for that.