title: Button Onclick Listener in included layouts
body: <p>I come to you on bended knee, question in hand. I am relatively new to Android, so pardon any sacrilegious things I might say.  </p>
  
  <p><strong>Intro:</strong> I have several layouts in the app, that all have to include a common footer. This footer has some essential buttons for returning to the home page, logging out, etc. </p>
  
  <p>I managed to get this footer to appear in all the requisite pages with the help of the Include and Merge tags. The issue lies in defining on click listeners for all the buttons. Although I can define the listeners in every activity associated with screens that include the footer layout, I find that this becomes terribly tedious when the number of screens increases.</p>
  
  <p><strong>My question is this:</strong> Can I define a button click listener that will work across the application, which can be accessed from any screen with the use of the <em>android:onClick</em> attribute of the Button? </p>
  
  <p>That is to say, I would like to define the button click listener once, in a separate class, say <em>FooterClickListeners</em>, and simply name that class as the listener class for any button clicks on the footer. The idea is to make a single point of access for the listener code, so that any and all changes to said listeners will reflect throughout the application.</p>