A
A
Anton @ Lyalin2018-02-19 08:40:44
Android
Anton @ Lyalin, 2018-02-19 08:40:44

How to work with fragments?

There is an Activity where the initial Fragment with the Button is loaded first, and then another Fragment is opened by clicking on the button, how to implement this correctly? That is, after loading the second one, hide the first one? And how to make it possible to return from the second fragment to the first fragment, by pressing the back button on the phone, not in the application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-02-19
@toxa_1995

start with documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question