Skip to main content
Karan Kolhe
Associate II
October 31, 2019
Solved

Can I have a master screen in an application?

  • October 31, 2019
  • 1 reply
  • 719 views

I want to use a slider which will be on master screen and then this slider can be slided/accessed on all screens in my application. I know I can add slider on every screen but is there any way to avoid that? I want to use same slider across all the screens. And also Date name and all that is common for every screen like status bar in phones

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Yes you can. The designer doesn't support this, but it could in the future - Basically, what you're forced to do is to have something like a Custom Container in every view and then some code replicated by the presenter for that concrete view.

In your case, you could have a custom container that has all the elements you want, but the presenter method to update those elements through the view from the model would have to be replicated.

To have a BASE-VIEW and BASE-PRESENTER for a group of screens you would have to create a new class by hand that you can then inject in between the designer-generated view and your inherited view for that generated base view.

I'm swamped - I promised i'd do an example for someone else and it's still on my list!

/Martin

1 reply

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
November 4, 2019

Yes you can. The designer doesn't support this, but it could in the future - Basically, what you're forced to do is to have something like a Custom Container in every view and then some code replicated by the presenter for that concrete view.

In your case, you could have a custom container that has all the elements you want, but the presenter method to update those elements through the view from the model would have to be replicated.

To have a BASE-VIEW and BASE-PRESENTER for a group of screens you would have to create a new class by hand that you can then inject in between the designer-generated view and your inherited view for that generated base view.

I'm swamped - I promised i'd do an example for someone else and it's still on my list!

/Martin