Suppose there is some window, or a dialog that occupies a part of the screen during some action.

And it is necessary either to allow the user to specify this dialog as a priority, or vice versa to allow the application to be used during its display.

Someone may say that when a dialog appears, the back layer will automatically disappear, in this case I want to remind you about an element like Bottom Sheet.

I did not find articles or detailed information on the focus on the Internet, that is, if we say the user should work specifically with one view at a given time, how is this achieved?

    1 answer 1

    If you want to allow interaction with other content, add this "panel" to the markup (in the sense of the current view window's hierarchy, and not necessarily in xml). If you want to prohibit interaction with other content, then create a dialogue with this panel. That's all sobsno. Bottom Sheet is implemented as such, there is a control that is added to the CoordinatorLayout , and there is a dialog that creates a separate window with a separate CoordinatorLayout and adds the Bottom Sheet control there.

    • and what if you want to add the control to the CoordinatorLayout not as a separate window, but with the restrictions of a separate CoordinatorLayout ? - Silento
    • and how do you show the user without dialogue that he can work only with a separate area? - xkor
    • I'm actually trying to understand the principle of action. Such problems require design, not my whim so to speak. Therefore, I try to imagine the best practice of your words. - Silento