android - Is it ok to use DialogFragment in fullscreen to simulate a new activity? -


i trying know if ok manage "navigation" of app dialogfragments time, putting them in fullscreen if activities. thank much

you can this. can opposite (using activities dialogs, weird).

the real reason reuse fragment both dialog , full screen view, perhaps different screen sizes, etc.

you might have ui design in want piece of ui appear dialog in situations, full screen or embedded fragment in others (perhaps depending on whether device large screen or small screen). dialogfragment class offers flexibility because can still behave embeddable fragment.

http://developer.android.com/guide/topics/ui/dialogs.html#fullscreendialog

doing in general no real reason odd practice


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -