0

I am developing an android app with 9 or 10 activities, and for every activity I want to make a home button that takes the user to the main screen of the app! Some suggestions for how could i do that?

1 Answers1

0

Create a single XML file for that button and include it in all of your activity layouts. For more details: Simple example of <merge> and <include> usage in Android XML-layouts

Community
  • 1
  • 1
Mbt925
  • 1,317
  • 1
  • 16
  • 31