In my android project written using Android Studio, I added a new Basic Activity. This activity comes by default with two fragments. When run the project, always with the default fragments, in the toolbar, the back icon appears only in the second fragment. The behavior of this back icon is set in the code the activity (not in the one of the second fragment). I would like to ask if there is a simple and clean way to make appear the back icon also in the first fragment in order to configure it for return to the main activity.
Asked
Active
Viewed 11 times
0
-
In the future, you should always include your code (in this case, the code for your activity) so that everyone can see exactly what code you are working with. – ianhanniballake Mar 06 '22 at 00:31