-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct way to load dynamic content in wizard #13
Comments
@femosso I downloaded all the code and inserted it into my app's code. Then I had to resolve all issues (copy resources, etc.) Then, I modified
Then, my wizard model constructor:
Finally,
|
Old post, still this answer can help someone.
With that change you can do: I hope that helps. |
In the sample code the AbstractWizardModel is being statically instantiated when MainActivity is created. Once this is done, the onNewRootPageList() callback is immediately triggered in the wizard model and I couldn't find a way to load the PageList with some dynamic contents.
The workaround I found for this is to make AbstractWizardModel class a inner class in MainActivity and have my dynamic content a global variable so I could access it from AbstractWizardModel. This generates a side effect since I'm no longer instantiating AbstractWizardModel class when the MainActivity is create. I'm instantiating it o onCreate() callback, so it is being called some time later in comparison with original code.
Is there an alternative way to load content in the form (PageList) dynamically?
The text was updated successfully, but these errors were encountered: