title: reuse header ui design and functionality in all activities
body: <p>I am working on application which have same header in all activites,in which there are some views in image views, buttons, textviews etc.</p>
  
  <p>Now the The question is i want to use these header views in all the activites,but i do not want to re-code and re-design it in every activity.so is it possible to create a fragment of header views and reuse its ui and functionalities in all other activites.</p>
  
  <ul>
  <li>if no,then any idea to make it reusable header?</li>
  <li>if yes,then how ?</li>
  </ul>
  
  <p>thanks for the help.!</p>
  
  <p>updates in this question according to my research!
  i have researched and fond that it can easily acheived by using fragments.but i am still not getting that how?
   how can i acheive that functionality?
  according to this:
  <a href="https://stackoverflow.com/questions/7106625/reusable-ui-in-android-app">reusable UI in android app</a></p>
  
  <p>and this:</p>
  
  <p><a href="https://stackoverflow.com/questions/9827072/why-use-fragments">reusable ui with fragments</a></p>
  
  <p>any links and code would be helpful!</p>