R
R
Roman Makarov2016-06-07 16:37:59
Android
Roman Makarov, 2016-06-07 16:37:59

Is it possible to add a full screen dialog according to the material design guides?

The guides say that in some cases, dialogues for mobile phones can be done in full screen mode. I've searched the manuals but haven't found any way to implement this using a DialogFargment other than putting it in an Activity. Is this the correct way or is there a better solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-06-17
@vollossy

The method of implementation depends on the needs (read "design") in a particular case.
In general, a full-screen dialog is essentially a regular activity with the appropriate design.
I have a screen in one of my apps that should be a regular dialog on big devices (tablets) and full screen on small ones (smartphones). For such a case, we create an activity and give it a theme inherited from Theme.AppCompat.DialogWhenLarge . Everything, it remains only to change the design of the activity as needed, setting the theme attributes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question