title: How do I create common code for parts of Android activities?
body: <p>In my application there are 14 activities. Out of that 9 activity contains custom title bar and tab pane. so here I need to write this common code at one place instead of redundant code in each activity that contain custom title bar and tab pane code (i.e layout and it's activity specific code)</p>
  
  <p>What are the possible ways to do this?</p>