Under containers in a stream

Is there any documentation on how to create subcontainers in a stream?

For example, I have a view of Master, Detail.

I intend to add a popup that will have its own back. The pop-up window will function as a wizard asking you to follow some configuration instructions and will appear as a pop-up window.

Something like the layout below, except for the master container (fully displayable box layout)

enter image description here

How can this be achieved? Will a specific (or parent) container know about the existence of a pop-up container? Something like that?

@InjectView(R.id.master_container) FramePathContainerView masterContainer; @InjectView(R.id.detail_container) FramePathContainerView detailContainer; @InjectView(R.id.popup_container) FramePathContainerView popupContainer; @Override public boolean onBackPressed() { return BackSupport.onBackPressed(popupContainer) || BackSupport.onBackPressed(detailContainer); } @Override public ViewGroup getCurrentChild() { Paths.MasterDetailPath showing = Path.get(getContext()); return showing.isMaster() ? masterContainer.getCurrentChild() : showing.isPopup() ? popupContainer.getCurrentChild() : detailContainer.getCurrentChild(); } 

Is that what needs to be done? Thoughts?

+5
source share

All Articles