Best practice for calling up a new screen

-1

I have a Activity that contains a RecyclerView , clicking on it opens a Dialog with the information of the selected item.

And in this Activity has a FloatingActionButton , which I want to call a registration screen. What is the best programming practice for calling this screen?

  • Calling another Dialog responsible for the registration is a good one?
  • Do I create a Activity just to be responsible for the registration?
  • I call a Fragment same?
asked by anonymous 21.10.2018 / 04:03

1 answer

0

This will depend on how this will be, if it is something simple like name , value and date , for example, I think Dialog is now resolved, now if it is something larger, a large form, Activity or Fragment would be better, as the Dialog

Between Activity and Fragment you should review some things, the current context already has where to fit this Fragment ?

Because if you have to create a whole structure for this, it is best to save time and go from Activity , but for example a screen with NavigationDrawer the Fragment already fits easier, but with Tabs I do not think it would have the same effect, so another Activity would be better.     

21.10.2018 / 07:09