title: Android reusable parts of UI with specific functionality
body: <p>Is it possible to have a part of UI like a Fragment that has search functionality and be reusable? Meaning that I have the logic of the Fragment in one place and use it in other Activities without having to implement that logic in all of the Activities. I looked at Fragments and it seems that the logic is implemented in the Activity.</p>
  
  <p>If not, is there a way to do this, or do i have to implement it in all Activities?</p>